Skip to content
Advertisement

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 :

<head>
  <!-- something -->

  <!-- plugin css -->
{{--  {!! Html::style('assets/plugins/@mdi/font/css/materialdesignicons.min.css') !!}--}}
  <link href="https://cdn.bootcss.com/font-awesome/5.12.1/css/all.min.css" rel="stylesheet">
  {!! Html::style('assets/plugins/perfect-scrollbar/perfect-scrollbar.css') !!}
  <!-- end plugin css -->
</head>

I commented out this line of code {!! Html::style('assets/plugins/perfect-scrollbar/perfect-scrollbar.css') !!}, then it runs normally. so i am sure “Html::style” cause the crash of the page.

and sometime it display Class 'Html' not found (View: C:UsersLDesktopxxresourcesviewslayoutspanelmaster-mini.blade.php)

Could anyone please tell me why?

Thank you a lot.

Advertisement

Answer

I suggest you start commenting code in the structure of the Blade file, and update to see which code snippet is the one that makes your page take so long to load. This is how I check for these kinds of errors.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement