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 ?
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 - phpI'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 - phpwell , 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 - phpstay 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 - phpI 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 - phpstay 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::…