mardi 5 janvier 2016

Laravel 5.1 views not found and got error 404 on site navigation

I'm new to Laravel. And I'm trying to write a project with this framework... But when I upload my site in my shared host, I got error 404 in all of the site links, except site home page... this's while the site works fine in xampp... and my code :

html:          
      <li>
          <a href="soon">
              آرشیو مقاله
          </a>
      </li>

     <li>
          <a href="contact">
              ارتباط با ما
          </a>
      </li>

      <li>
          <a href="about">
              درباره ما
          </a>
       </li>
Routes.php:

Route::get('/', function () {
     return view('home');
});

Route::get('/soon', 'NavigationController@soon');
Route::get('/about', function () {
     return View::make('about');
});
Route::get('/contact', function () {
     echo 'contact ';
});

NavigationController.php :

<?php
 namespace App\Http\Controllers;
 use Illuminate\Http\Request;
 use App\Http\Requests;
 use App\Http\Controllers\Controller;
class NavigationController extends Controller
{
function soon(){
    return view('soon');
}

} `` How can I fix this problem ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire