jeudi 15 juillet 2021

Viu js and Laravel Route and project structure

I am working on a project , i need to build front end with viu js and laravel 8, for users(abc.com as front users) like user login , dashboard etc and there will be a admin (abc.com/admin) with admin login , dashboard etc will be in laravel with blade.

 1. I configure and running vue js with laravel 8 for front users.
 2. how to run or route for this --> abc.com/admin or abc.com/client , (don't want api here regular laravel approch parsing data to blade)
 3. like i install vue js and laravel and for front user resources/js have all, the components etc running. i am not sure about project structure with laravel and vue. is this correct way?


    Route::get('/{any}', function ($any) {
        if ($any == 'admin') {
            return View::make('admin.index');  // this is blade
        } if ($any == 'client') {
            return View::make('client.index'); // this is blade
        }  else {
            return View::make('front.index');  // this is viu js 
        }
    });


from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3kpduGm
via IFTTT

Aucun commentaire:

Enregistrer un commentaire