ErrorException: session_start(): Cannot start session when headers already sent in file /home/boxacaq/www/app/Http/Controllers/ProductController.php on line 12 #0 [internal function]: Illuminate\Foundation\Bootstrap\HandleExceptions->handleError(2, 'session_start()...', '/home/boxacaq/w...', 12, Array) #1 /home/boxacaq/www/app/Http/Controllers/ProductController.php(12): session_start() #2 /home/boxacaq/www/vendor/composer/ClassLoader.php(478): include('/home/boxacaq/w...') #3 /home/boxacaq/www/vendor/composer/ClassLoader.php(346): Composer\Autoload\includeFile('/home/boxacaq/w...') #4 [internal function]: Composer\Autoload\ClassLoader->loadClass('App\\Http\\Contro...') #5 [internal function]: spl_autoload_call('App\\Http\\Contro...') #6 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(803): ReflectionClass->__construct('App\\Http\\Contro...') #7 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(681): Illuminate\Container\Container->build('App\\Http\\Contro...') #8 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(785): Illuminate\Container\Container->resolve('App\\Http\\Contro...', Array, true) #9 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Container/Container.php(629): Illuminate\Foundation\Application->resolve('App\\Http\\Contro...', Array) #10 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(770): Illuminate\Container\Container->make('App\\Http\\Contro...', Array) #11 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Routing/Route.php(233): Illuminate\Foundation\Application->make('App\\Http\\Contro...') #12 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Routing/Route.php(833): Illuminate\Routing\Route->getController() #13 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Routing/Route.php(794): Illuminate\Routing\Route->controllerMiddleware() #14 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php(694): Illuminate\Routing\Route->gatherMiddleware() #15 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php(674): Illuminate\Routing\Router->gatherRouteMiddleware(Object(Illuminate\Routing\Route)) #16 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php(658): Illuminate\Routing\Router->runRouteWithinStack(Object(Illuminate\Routing\Route), Object(Illuminate\Http\Request)) #17 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php(624): Illuminate\Routing\Router->runRoute(Object(Illuminate\Http\Request), Object(Illuminate\Routing\Route)) #18 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Routing/Router.php(613): Illuminate\Routing\Router->dispatchToRoute(Object(Illuminate\Http\Request)) #19 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(170): Illuminate\Routing\Router->dispatch(Object(Illuminate\Http\Request)) #20 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(130): Illuminate\Foundation\Http\Kernel->Illuminate\Foundation\Http\{closure}(Object(Illuminate\Http\Request)) #21 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #22 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure)) #23 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php(21): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #24 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\TransformsRequest->handle(Object(Illuminate\Http\Request), Object(Closure)) #25 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php(27): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #26 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\ValidatePostSize->handle(Object(Illuminate\Http\Request), Object(Closure)) #27 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php(63): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #28 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode->handle(Object(Illuminate\Http\Request), Object(Closure)) #29 /home/boxacaq/www/vendor/fideloper/proxy/src/TrustProxies.php(57): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #30 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(171): Fideloper\Proxy\TrustProxies->handle(Object(Illuminate\Http\Request), Object(Closure)) #31 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php(105): Illuminate\Pipeline\Pipeline->Illuminate\Pipeline\{closure}(Object(Illuminate\Http\Request)) #32 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(145): Illuminate\Pipeline\Pipeline->then(Object(Closure)) #33 /home/boxacaq/www/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php(110): Illuminate\Foundation\Http\Kernel->sendRequestThroughRouter(Object(Illuminate\Http\Request)) #34 /home/boxacaq/www/public/index.php(54): Illuminate\Foundation\Http\Kernel->handle(Object(Illuminate\Http\Request)) #35 {main}