Skip to content

Bug in create post #7

@VDHSoft-com

Description

@VDHSoft-com

there is a bug in creating a post, here is the fix :

modify the create method in app/Http/Controllers/PostController.php like this :

public function create()
{
   $categories = Category::all(); // Récupère toutes les catégories
   return view('back.posts.create', compact('categories'));
}

this fixes the bug,
hope this help,
Domi.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions