Is it possible to downgrade Laravel 5.8 PHP version to PHP 5? Searched around for resources yet I can’t find any. I need to downgrade it so that I can upload it to our local ubuntu server. Answer Laravel 5.8 requires PHP >= 7.1.3 because the code written in Laravel Core and in other PHP Libraries required by Laravel uses
Tag: laravel-5
Changing navigation and link URLs?
I am new to laravel and this will be inappropriate question. Although I searched I couldn’t find the answer. My project run smoothly with php artisan serve command. I just wanted to remove the artisan command. So I added my project into htdoc folder of XAMPP. Then I changed according to this answer https://stackoverflow.com/a/28799205/3558507 When I run my project by
How is method call passed from `Routes` to `RoutesCollection`?
I am trying to understand how Laravel gets all fresh application routes at this line: $this->getFreshApplication()[‘router’]->getRoutes() When I dump $this->getFreshApplication()[‘router’] …
Accessing a request parameter already declared in constructor in LARAVEL
I want to access a Request parameter in my Listener. I found this solution (to declare it in the constructor) but it should be only initialized in handle method? I want to access my request in the …
Laravel set option to selected if option id is in an array list in blade view
I made query in my controller and send it to my blade : public function editContractorAssociation(DeveloperContractorAssociation $developer_contractor_association, Request $request) { $id …
Laravel5.8: The GET method is not supported for this route. Supported methods: POST. issue
I am setting user profile update section. But when I went to profile create page, I got a following error. The GET method is not supported for this route. Supported methods: POST. I tried php …
Why I can not get model?
There are two models: class User extends Authenticatable { public function verifyUser() { return $this->hasOne(‘AppVerifyUser’); } } class VerifyUser extends Model { …
How to set value in the textbox from database that contain a quotation mark in it?
I am using Laravel and I have an update modal. My data is not set on the modal because one of the data contain quotation mark like in the picture below. My button’s code is like this: <a type="…
Add days to date in Laravel
I am beginner in Laravel. I use in my project Laravel 5.8. I have this code: How can I add $userPromotionDays to $daysToAdd (in Laravel/Carbon)? Answer You can create date with custom format and then add days to it using carbon. You can see details documentation here.
Laravel: How to get count of total Comments of total Posts
I have 10000 posts and each post have many comments. I need to calculate all comments count when i take posts. [ ‘post_1’ => [ ‘comments’ => [ ‘comment_1’ => ‘trst …