1

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:\Users\L\Desktop\xx\resources\views\layouts\panel\master-mini.blade.php)

Could anyone please tell me why?

Thank you a lot.

Happroi
  • 9
  • 5

1 Answers1

1

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.

leo95batista
  • 699
  • 9
  • 27
  • 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. – Happroi Mar 18 '20 at 13:11
  • hum... Could it be that that ```perfect-scrollbar.css``` file ... is trying to get a file from a URL of an online server .. could you check it from the browser console? ... maybe that's why it takes so long .. anyway .. because don't use the following syntax..just to check ..`````` – leo95batista Mar 18 '20 at 13:15
  • Unbelievable, but it works. Thank you for your answer sincerely. – Happroi Mar 18 '20 at 13:22
  • Sorry, i use this community firstly, and forgot to accept your answer. – Happroi Mar 18 '20 at 13:29