当前位置:网站首页>Laravel page load problem connection reset - PHP

Laravel page load problem connection reset - PHP

2022-07-04 07:52:00 45MA

I use laravel 5.2 Create a simple RestFul API, My client has a shared domain , So I can't run shell command , So I went through cpanel With the public_html Uploaded in the adjacent directory laravel, I am for laravel Create a subdomain and place the public directory in the directory and point the subdomain to pulic Catalog . In some cases, everything is normal , Sometimes it doesn't work properly , This page shows me an error

“ Connection reset ”

Please anyone who can help me solve this problem ?

its in firefox

I have also tried this method in Google browser , But the problem remains .
Sometimes home page url Work well , Sometimes this error appears , I try to blade from layout php Delete comments from the file to try .

I also tried to update the storage permissions to 777

Reference plan

This is a .htaccess Problems with documents , If you encounter this problem , It can be found in htaccess To add the following

php_flag opcache.enable Off

It's like a charm to me

thank you

Laravel Blade How to return when the template tries to get the properties of a non object null instead of ErrorException - php

I'm writing some Laravel Blade Templates , And my model may contain empty objects . I really want to try to get object properties , If there is an error , Then return to null. therefore , You don't have to write the following code :@if ($model->child_object_that_may_be_null) {{ $model->child_object_that_may_be_null->interesti…

All with a specific pathname URL Redirect to a view -LARAVEL - php

well , I am using laravel, The website and the management section run two React project . I want both applications to appear on separate pages , Because of their CSS There will be conflict . therefore , In my web.php in , I have this Route::view('/{path?}', 'app');, But this will redirect all my routes to mine app.blade.php View . I just want to know who I am …

Laravel- You can authenticate users without logging in - php

stay laravel 5.4 in , Can I authenticate users without logging in to them ? from laravel doc in , The closest thing I can find is :Auth::once($credentials) But this still annoys the user . All I need to do is know whether the user using this email and password exists . Reference plan You can use Auth::attempt Function and the third parameter are used as false Log in $email…

Laravel WHERE Query single column results - php

I have the following controllers , All unauthenticated users should be returned .public function getUserRequests() { $userRequests = User::where('status' ,"Not Verified"); foreach($userRequests as $user) { echo $user-&g…

Laravel 5 Error reporting suppression - php

stay Laravel 4 in , Inhibition E_NOTICE News is easy ; I can't seem to do this , Because if I add error_reporting(E_ALL ^ E_NOTICE) It's just anywhere covered . This seems to happen here :(index.php)$response = $kernel->handle( $request = Illuminate\Http\Request::…

原网站

版权声明
本文为[45MA]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202141517534667.html