← prev | next →
ArchRaphel 2021-04-08 14:48:20
This is the problem am having
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘archfxtest.posts’ doesn’t exist (SQL: insert into posts (name, email, subject, message, updated_at, created_at) values (Raphael, mercyfxfoundation@gmail.com, Truth, I want to buy your robot, 2021-04-08 10:05:29, 2021-04-08 10:05:29))
Correct me if am wrong. I think the problem is i don’t have any table called posts. yes i did not create any table called posts i actually create table called contactform. I don’t understand why after clicking submit button laravel is still looking for posts table when it was suppose to look for contactform table.
I have check places to see where laravel is sending to posts i could not find it
pringal7 2021-04-08 14:49:04
Nurullah Demirel 2021-04-08 14:47:28
ı m useing laragon not xampp
1 Download it:
https://curl.haxx.se/ca/cacert.pem
2 Replace C:laragonetcsslcacert.pem with it
3 Restart Apache/Nginx
AMIT 2021-04-08 15:10:51
Anyone interested in Laravel Developer job then DM me.
Job type: Full time on site in Delhi, IN
Minimum Experience: 4 years
Salary:45k-50k/month
Joining: Immediate
Ebenezer Oyenuga 2021-04-08 15:19:29
ArchRaphel 2021-04-08 14:48:20
This is the problem am having
SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘archfxtest.posts’ doesn’t exist (SQL: insert into posts (name, email, subject, message, updated_at, created_at) values (Raphael, mercyfxfoundation@gmail.com, Truth, I want to buy your robot, 2021-04-08 10:05:29, 2021-04-08 10:05:29))
Correct me if am wrong. I think the problem is i don’t have any table called posts. yes i did not create any table called posts i actually create table called contactform. I don’t understand why after clicking submit button laravel is still looking for posts table when it was suppose to look for contactform table.
I have check places to see where laravel is sending to posts i could not find it
Let’s see your controller that is triggering this error
ArchRaphel 2021-04-08 15:23:42
ArchRaphel 2021-04-08 15:23:42
ArchRaphel 2021-04-08 15:43:45
ArchRaphel 2021-04-08 15:23:42
This is the controller
DesolatorMagno 2021-04-08 15:53:39
Show the model
2021-04-08 15:57:38
Guys how can i loop through this
2021-04-08 15:57:50
$data = ‘[{“Body”:
{“stkCallback”:
{“MerchantRequestID”:”30123-1947428-1″,”CheckoutRequestID”:”ws_CO_070420211227187719″,”ResultCode”:0,”ResultDesc”:”The service request is processed successfully.”,”CallbackMetadata”:
{“Item”:[{“Name”:”Amount”,”Value”:1.00},
{“Name”:”MpesaReceiptNumber”,”Value”:”PD78JU84MU”},
{“Name”:”Balance”},
{“Name”:”TransactionDate”,”Value”:20210407122727},
{“Name”:”PhoneNumber”,”Value”:254745481760}]
}
}
}
}]’;
2021-04-08 15:58:02
using plain php
ArchRaphel 2021-04-08 16:02:20
DesolatorMagno 2021-04-08 15:53:39
Show the model

This is my model
ArchRaphel 2021-04-08 16:03:47
DesolatorMagno 2021-04-08 15:53:39
Show the model

This is where i created contacform table
DesolatorMagno 2021-04-08 16:12:27
That is not the table model that is the base model for any model, nobody ask for that or the base controller, those files are generic so it doesn’t bring any info.
DesolatorMagno 2021-04-08 16:13:36
I know that the comtacform table exist because the validation didn’t return error.
What I asked was for the post model to see if there is specified the table name.
DesolatorMagno 2021-04-08 16:15:04
Is weird to have a table comtacform and use a model called post for it, but to each their own.
ArchRaphel 2021-04-08 16:16:39
DesolatorMagno 2021-04-08 16:15:04
Is weird to have a table comtacform and use a model called post for it, but to each their own.
Please where can i find the model you are asking for? Please pardon me for asking, am new to laravel
ArchRaphel 2021-04-08 16:39:12
DesolatorMagno 2021-04-08 16:15:04
Is weird to have a table comtacform and use a model called post for it, but to each their own.
Thank you very much. I was able to solve the issue using your comment
ArchRaphel 2021-04-08 16:40:18
public $table = ‘contactform’;
ArchRaphel 2021-04-08 16:40:41
ArchRaphel 2021-04-08 16:40:18
public $table = ‘contactform’;
I added this to my Post Model
DesolatorMagno 2021-04-08 16:52:55
ArchRaphel 2021-04-08 16:39:12
Thank you very much. I was able to solve the issue using your comment
Good to know.
ArchRaphel 2021-04-08 17:05:31
you are welcome
Acird Burn 2021-04-08 17:23:30
any laravel freelance developer here
Devvvvvvm 2021-04-08 17:45:24
Am freelance 7+ years experience php, laravel you developer . Let me know for any work opportunity
rahul_v3 2021-04-08 17:48:06
Ayushi2020 2021-04-08 11:28:58
https://www.linkedin.com/jobs/view/2489725004/
I am full time free lancer
BaronNo1 2021-04-08 18:22:07
Acird Burn 2021-04-08 17:23:30
any laravel freelance developer here
[FOR HIRE] [FULL OR PART TIME][REMOTE] Back-end web developer with over 2 years of php(laravel) experience. Open to work anywhere. Retweet to help a brother. Thanks
Github: https://github.com/timbaron
#Laravel #30daysofcode #100DaysOfCode #php #phpjobs #Backend
Timbaron – Overview –
GitHubI’m just a guy who love to build cool and amazing stuffs.
– Timbaron
Acird Burn 2021-04-08 18:33:19
BaronNo1 2021-04-08 18:22:07
[FOR HIRE] [FULL OR PART TIME][REMOTE] Back-end web developer with over 2 years of php(laravel) experience. Open to work anywhere. Retweet to help a brother. Thanks
Github: https://github.com/timbaron
#Laravel #30daysofcode #100DaysOfCode #php #phpjobs #Backend
Inbox
natghi2010 2021-04-08 19:25:45
has anyone converted base64 to pdf?
natghi2010 2021-04-08 19:26:13
base64_decode($pdf_base_code);
natghi2010 2021-04-08 19:26:23
asks for string
RajkotRocks 2021-04-08 19:26:57
Google it bro
natghi2010 2021-04-08 19:27:21
RajkotRocks 2021-04-08 19:26:57
Google it bro
I did, no definitve answer
Nurullah Demirel 2021-04-08 19:27:50
I Corvet HTML to PDF
natghi2010 2021-04-08 19:30:16
Nurullah Demirel 2021-04-08 19:27:50
I Corvet HTML to PDF
as what
natghi2010 2021-04-08 19:30:26
binary?
← prev | next →