app/Http/Controllers/PostController.php
/**
     * Display a listing of the resource.
     *
     * @return \Illuminate\Http\Response
     */
Display a listing of the resource.
@return \Illuminate\Http\Response
Display a listing of the resource . @return \ Illuminate \ Http \ Response
public function index()
    {
        $categorias= CategoriaModel::orderBy('clave_categoria','ASC')->get();
        return view('blog.post', compact('categorias'));
    }
public function index ( ) { $ categorias = CategoriaModel :: orderBy ( 'clave_categoria' , 'ASC' ) -> get ( ) ; return view ( 'blog.post' , compact ( 'categorias' ) ) ; }
Display a listing of the resource.
Display a listing of the resource .
//        $posts= PostModel::where('activo_sn', 'true')->orderBy('clave_post','ASC')->get();