Brands CRUD
Create database table through database migration
php artisan make:model Brand -m...
public function up()
{
Schema::create('brands', function (Blueprint $table) {
$table->id();
$table->timestamps();
// column to store image path
$table->string('image')->nullable();
// column to store brand name
$table->string('name')->unique();
// column to specify if brand is active or not
$table->boolean('is_active')->default(true);
// columns for storing created_by, updated_by, craeted_at
// and updated_at
SpeedAdminHelpers::createdByUpdatedByMigrations($table);
});
}
...Add CRUD functionality to Brand Model
Add columns for Grid (datatable):
Add permissions for Brands (Add/Edit/Delete/List)

Add BrandController
Add menu for brands

Add route for brands

Add Brand Form fields

Last updated