ReflectionException in Container.php line 737: Class view does not exist
Hello all,
I'm fairly new to the framework and I recently ran into a problem that I just can't find a solution to. When I try to access my project through a web browser, I keep getting the error:
ReflectionException in Container.php line 737: Class view does not exist
I already removed the composer.lock file as well as the vendor directory and ran a composer install but this didn't solve the issue.
I have no idea how to solve this problem and would really appreciate some help.
Thanks!
on my case, i solved it by installing the missing php exts like php-pdo it was with php-common so i thought that it was already installed. so try installing the php exts php-mbstringphp-pdo and try again.
So I'm just running through some basic configurations and trying to get a feel for the framework. Nothing ground breaking, just the basics. I'm fairly certain this has to do with my changing the composer.json and app.php files when trying to configure forms and HTML from the Laravel Collective so I can post those files as well if need be.
This is the routes file:
<?php
/*
|--------------------------------------------------------------------------
| Application Routes
|--------------------------------------------------------------------------
|
| Here is where you can register all of the routes for an application.
| It's a breeze. Simply tell Laravel the URIs it should respond to
| and give it the controller to call when that URI is requested.
|
*/
Route::get('/', function()
{
return view('welcome');
});
Route::get('index', 'WelcomeController@index');
Route::get('help', 'WelcomeController@help');
Route::get('help/{id}', 'WelcomeController@show');
The controller:
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use App\Event;
class WelcomeController extends Controller
{
public function index () {
return view ('Delta.Index');
}
public function help () {
//return view('Delta.Help');
$event = Event::all();
return View ('Delta.Help')->with('event', $event);
}
public function show ($id) {
$event = Event::FindOrFail($id);
}
}