Skip to content

Bug in create post #7

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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