samedi 19 mars 2016

Laravel using Ajax

I'm a little confused, in how is the best way to achieve a web site using ajax and Laravel... I want to update only the content and not for example the menu and footer. Right now I have a layout for my website, in which one I include nav-bar. this is the code of nav-bar (juste one part):

<li><a><i class="fa fa-edit"></i> Gestion <span class="fa fa-chevron-down"></span></a>
    <ul class="nav child_menu" style="display: none">
        <li><a href="/user">Gestion des utilisateurs</a>
        </li>
        <li><a href="/config">Configuration</a>
        </li>
    </ul>
</li>

and the controler of /user:

class UserController extends Controller
{
 
    public function __construct()
    {
        $this->middleware('auth');
    }
 
    public function index()
    {
        return view('gestion');
    }
}


via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire