Contents:
another options?
what should the save method return?
What could be the problem?
Are you getting the error 500 from Laravel, or the unstyled one from the server?
htaccess could be the problem?
another options?
what should the save method return?
What could be the problem?
Are you getting the error 500 from Laravel, or the unstyled one from the server?
htaccess could be the problem?
rebory 2020-12-16 17:21:18
{{ dd($invoice->webInvoiceReferralDetails()) }}
rebory 2020-12-16 17:22:02
DesolatorMagno 2020-12-16 17:21:18
In the documentation is explained how to specify the foreign key.
rebory 2020-12-16 17:22:26
i have invoice_id in refferal table
DesolatorMagno 2020-12-16 17:22:40
Yes
DesolatorMagno 2020-12-16 17:23:19
It will take the name of the table and add ‘_id’ that is the standard
rebory 2020-12-16 17:23:41
in my requirement – but i want records in WebInvoice model same as Invoice model
DesolatorMagno 2020-12-16 17:24:23
You need to specify the foreign key…
rebory 2020-12-16 17:24:35
another options?? define custom forgein key?
DesolatorMagno 2020-12-16 17:25:28
In the relationship, it acept key name, and foreign key name, I stead of using default, define 1.
DesolatorMagno 2020-12-16 17:25:51
Read the documentation about has many and belongs to.
rebory 2020-12-16 17:26:20
i try this this but not working
rebory 2020-12-16 17:26:32

rebory 2020-12-16 17:29:04
DesolatorMagno 2020-12-16 17:25:51
Read the documentation about has many and belongs to.
DesolatorMagno 2020-12-16 17:29:23
You are doing something wrong, I experiment using tinker, is easier for my.
rebory 2020-12-16 17:30:29
DesolatorMagno 2020-12-16 17:29:23
You are doing something wrong, I experiment using tinker, is easier for my.
any example pls if possible
DesolatorMagno 2020-12-16 17:32:46
I use model->relationship()-toSql()
So it return the SQL.
And start experimenting changing values.
mynameisbrad 2020-12-16 18:34:48
Hey guys, what was a good way to edit something in php.ini from code
mynameisbrad 2020-12-16 18:35:09
I’m getting post too large exception, but I wanna increase the allowed size from the code not directly in the file
mynameisbrad 2020-12-16 18:35:28
Don’t have the permissions to mess around in the server side
natghi2010 2020-12-16 19:04:20
Image::make(storage_path(‘app/public/’ . $item->image))
->resize(300, 300)
->save(storage_path(‘app/public/’ . $item->image));
->resize(300, 300)
->save(storage_path(‘app/public/’ . $item->image));
natghi2010 2020-12-16 19:04:32
what should the save method return?
natghi2010 2020-12-16 19:05:01
wanted path for the saved file
ktmsulaim 2020-12-16 19:14:12
Hi,
my laravel app (7.22.4) is not working on PHP 7.4.7. But, it’s working well on 7.2! I get the error message Internal Server Error on browser and nothing else! What could be the problem?
my laravel app (7.22.4) is not working on PHP 7.4.7. But, it’s working well on 7.2! I get the error message Internal Server Error on browser and nothing else! What could be the problem?
GistOf 2020-12-16 19:16:43
ktmsulaim 2020-12-16 19:14:12
Hi,
my laravel app (7.22.4) is not working on PHP 7.4.7. But, it’s working well on 7.2! I get the error message Internal Server Error on browser and nothing else! What could be the problem?
my laravel app (7.22.4) is not working on PHP 7.4.7. But, it’s working well on 7.2! I get the error message Internal Server Error on browser and nothing else! What could be the problem?
Set APP_DEBUG=true in your .env file
ktmsulaim 2020-12-16 19:18:56
GistOf 2020-12-16 19:16:43
Set APP_DEBUG=true in your .env file
Thank you for your reply! It’s already set to true
GistOf 2020-12-16 19:20:48
Are you getting the error 500 from Laravel, or the unstyled one from the server?
GistOf 2020-12-16 19:21:35
If it’s the latter, it could be your file permissions
GistOf 2020-12-16 19:23:10
If you files are set to 0777 you’ll have issues
ktmsulaim 2020-12-16 19:24:36
GistOf 2020-12-16 19:20:48
Are you getting the error 500 from Laravel, or the unstyled one from the server?
Yes, 500
GistOf 2020-12-16 19:25:00
Idk if it’s Apache or PHP that doesn’t like php files being writable by everyone
ktmsulaim 2020-12-16 19:25:00

ktmsulaim 2020-12-16 19:25:41
Using windows 10, so hope there wouldn’t be permission issues
GistOf 2020-12-16 19:26:42
ktmsulaim 2020-12-16 19:25:00
That’s not Laravel. Your issue could be file permissions or .htaccess (more likely)
ktmsulaim 2020-12-16 19:27:42
GistOf 2020-12-16 19:26:42
That’s not Laravel. Your issue could be file permissions or .htaccess (more likely)
Ok…but it works when I change the php version! .htaccess could be the problem?
GistOf 2020-12-16 19:28:44
You’re switching PHP versions on the same machine?