Ad

Html::style Time Out

- 1 answer

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 target="_blank" rel="nofollow noreferrer" 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:\Users\L\Desktop\xx\resources\views\layouts\panel\master-mini.blade.php)

Could anyone please tell me why?

Thank you a lot.

Ad

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.

Ad
source: stackoverflow.com
Ad