I am stuck concerning the display...When I launch I have the error messag "Whoops, something went wrong on our servers"
I have a Controller named StaticViewController
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Input;
use Session;
class StaticViewController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\Http\Response
*/
public function index()
{
return view('static.index');
}
public function getService()
{
return view('static.services');
}
}
In my route I have that
Route::get('/', 'StaticViewController@index');
Route::get('/services', 'StaticViewController@getService');
Then, in View I have a folder named Static inside I have index.blade.php and services.blade.php
Thank you for your help.
You should try this:
Please check you created static
folder in yourproject/resources/views
path
if yes then run below command in your terminal
or cmd
php artisan config:cache
php artisan cache:clear
php artisan view:clear