app/Http/Controllers/AlimentosController.php
/*MOSTRAR EN LA VENTANA PRINCIPAL INDEX*/
MOSTRAR EN LA VENTANA PRINCIPAL INDEX
MOSTRAR EN LA VENTANA PRINCIPAL INDEX
public function mostrar_principal()
    {
		$platillos=DB::select('select * from alimentos inner join categoria on categoria.id_categoria=alimentos.id_categoria limit 3');
        $nuevos=DB::select('select * from alimentos order by id_alimento desc limit 3');
		return view('/principal/index',compact('platillos','nuevos')); 
    }
public function mostrar_principal ( ) { $ platillos = DB :: select ( 'select * from alimentos inner join categoria on categoria.id_categoria=alimentos.id_categoria limit 3' ) ; $ nuevos = DB :: select ( 'select * from alimentos order by id_alimento desc limit 3' ) ; return view ( '/principal/index' , compact ( 'platillos' , 'nuevos' ) ) ; }
MOSTRAR EN LA VENTANA PRINCIPAL INDEX
MOSTRAR EN LA VENTANA PRINCIPAL INDEX