I am working on a Laravel site. I have been working locally with Homestead / Vagrant and the site works fine. I just moved the site to: http://goferapp.io
On the new live site (still in development) I am getting the following error screen:
I have made sure in my controller to use the right namespace:
<?php
namespace App\Http\Controllers\Landlord;
use Illuminate\Http\Request;
use App\Http\Requests;
use App\Http\Controllers\Controller;
use Session;
use Sentinel;
use App\Property;
use App\Tenant;
use App\WaitingList;
use App\ServiceRequest;
use App\Document;
use App\User;
use Mail;
use Carbon;
class LandlordController extends Controller...
In my routes file I have:
Route::get('/dashboard', ['middleware' => 'postlog', 'uses' => 'LandLord\LandlordController@index']);
Here's my folder structure:
I cannot figure out why it works perfectly in my local environment and wont work live. I've cleared the cache with a special function:
Route::get('/clear-cache', function() {
$exitCode = Artisan::call('cache:clear');
return 'cache cleared!';
});
I'm at a loss now how to get this working. Any help is appreciated.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire