genially marcas de tiempo y resources
This commit is contained in:
parent
1a64168bcf
commit
7e0a2eda42
|
|
@ -9,7 +9,24 @@ use App\Models\Categorias;
|
|||
|
||||
class CategoriasController extends Controller
|
||||
{
|
||||
|
||||
public function index(Request $request){
|
||||
|
||||
$categorias = Categorias::onlyTrashed()->get();
|
||||
|
||||
// $categorias = Categorias::findOrFail(13);
|
||||
//$cat = Categorias::where('id_categoria', 1)->first();
|
||||
//$categorias = Categorias::where('descripcion', 'Cursos, capacitaciones y formación')->get();
|
||||
//$categorias = Categorias::where('descripcion', 'like', '%Prod%')->get();
|
||||
|
||||
//$categorias = Categorias::orderBy('nombre', 'desc')->get();
|
||||
|
||||
//$categorias = Categorias::first();
|
||||
//$categorias = Categorias::last();
|
||||
/*Categorias::count();*/
|
||||
|
||||
|
||||
return view('categorias.index', ["categorias"=>$categorias]);
|
||||
}
|
||||
public function show($id){
|
||||
$categoria = Categorias::findOrfail($id);
|
||||
return view('categorias.show', ["cat"=>$categoria]);
|
||||
|
|
@ -22,7 +39,9 @@ class CategoriasController extends Controller
|
|||
}
|
||||
|
||||
|
||||
|
||||
public function create(){
|
||||
return view('categorias.new');
|
||||
}
|
||||
|
||||
public function store(Request $request){
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user