app/Http/Controllers/BlogController.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()
    {
        $blogs = Blog::all();
        $id_user_auth = Auth::id();
        $categories = Category::all();
        return view('paginas.backend.blog.index', compact([
            'blogs',
            'id_user_auth',
            'categories'
        ]));
    }
public function index ( ) { $ blogs = Blog :: all ( ) ; $ id_user_auth = Auth :: id ( ) ; $ categories = Category :: all ( ) ; return view ( 'paginas.backend.blog.index' , compact ( [ 'blogs' , 'id_user_auth' , 'categories' ] ) ) ; }
Display a listing of the resource.
Display a listing of the resource .