Html::style time out

everyone. I use laravel6 (v6.18.2), and run php artisan serve. I visit this page, then it display Maximum execution time of 60 seconds exceeded Here is my code : <!– something –…

command not being found even though I am registering it Laravel 6.x

So consider the service provider, yes I know I am registering this command in two places, but just give me a moment to explain:

Artisan::call(‘route:cache’) from within Laravel app, crashes

Quick summary: I need to programmatically clear the routes cache (unless there is another way using the RouteServiceProvider?) but Artisan::call(‘route:cache’); is throwing an error. I have routes …

Laravel 6.11: Shopping cart HasMany::fisrt() in Accessor not working

EDIT: typos corrected (made while translating some of the code) I’m building a shopping cart with Laravel 6.11 (MAMP). I am getting a couple of errors that are driving me nuts. Please help! First I’…

Search is not working although item exists in DB

I am using laravel 6 : need user to find records by search bar, but it shows No Available Records enter image description here this in my model:Category model: public function scopeWhenSearch($query,…

Laravel 6 with Nginx, php 7.4 fpm and mysql 8 on docker is slower than Laravel 4 on php 7.1

I have been working on a site built on Laravel 4.2 and on Php 7.1. Recently I have been trying to migrate the site to Laravel 6 with php 7.4 and mysql 8. I setup docker with the following settings. …

Possibility using gate authorization without logged user

Is there a possiblity to use Gate authorization without making use of user auth service? For example I want to define a Gate: Gate::define(‘morning’, function(){ return date(‘H’) < 12; }); …

How to editColumn on a relationship column in Laravel Yajra DataTables

I’m using Laravel 6 with Yajra Datatable. I’m creating a “SessionDataTable” on a Session Model. This model has a Patient relationship class Session extends Model { public function patient() …

connect laravel application with database based on the url

hi im using laravel 6 project i want to connect my application to database based on the url like this schema www.mywebsite.com/project1 www.mywebsite.com/project2 www.mywebsite.com/project3 www….

PHP Notice: Array to string conversion; Database Factories

I have a talent model which can have many educations which I want to populate using data factories. But populating using artisan tinker the education data cause “Array to string conversion”. From …