Horje
laravel display category post by slug Code Example
laravel display category post by slug
    public function postCategory($id)
    {
        $posts = Post::where('category_id', $id)->get();

        return view('front.posts.category', compact('posts'));
    }
laravel display category post by slug
Route::get(/category/{slug});

    public function postCategory($slug)
    {
        $posts = Post::where('slug', $slug)->get();

        return view('front.posts.category', compact('posts'));
    }




Php

Related
set custome table laravel eloquent Code Example set custome table laravel eloquent Code Example
convert php to curl Code Example convert php to curl Code Example
smarty shorthand if Code Example smarty shorthand if Code Example
Best Performance monitoring tools for php Code Example Best Performance monitoring tools for php Code Example
php server on local machine Code Example php server on local machine Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8