Create Laravel Add Edit In single Method
Laravel use same form for create and edit CRUD stands for Create, Read, Update, and Delete. This needs when working with the database data. With this operation, a user can perform its action, and the changes will be saved in the database. In this tutorial, I show how you can select, insert, update, and delete a record from the MySQL database with Laravel
READ MORE...Store the File using Storage and delete
Store the File using Storage and delete the existing image from your storage folder as well.
READ MORE...Many To Many Relationships
Many-to-many polymorphic relations are slightly more complicated than "morph one" and "morph many" relationships. For example, a Post model and Video model could share a polymorphic relation to a Tag model. Using a many-to-many polymorphic relation in this situation would allow your application to have a single table of unique tags that may be associated with posts or videos.
READ MORE...Laravel User Roles and Permissions Without Package
Laravel User Roles and Permissions Without Package
READ MORE...