Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Laravel TomatoPHP Admin & CRUD generator
Fady Mondy
Fady Mondy

Posted on • Edited on

     

Laravel TomatoPHP Admin & CRUD generator

Hi, community.
Have you tried to build an SPA app? As a full stack developer I think it's straightforward to do that by using some frontend tech as a backend do you try it?

now it's easy to do that by using Splade it's a new package that supports building SPA apps with just Blade and It will make a lot of changes to the Laravel community.

because of this new tech we are on the TomatoPHP team going to build something unique with FilamentPHP UI and Splade Tech to check out a new Dashboard & CRUD generator to make your development faster and cleaner.

Demo

now you can check our demohere

Features

  • SPA App With Blade
  • CURD Generator Web / API
  • Support HMVC Architecture
  • Authentication & User Manager
  • Responsive UI Using Filament Template
  • RTL/Dark Mode Support
  • Ready to Use Breeze Tool Kit Support RTL/Dark Mode
  • Ready to Use Arabic / English Translations
  • Easy To use Menu With Provider

Install

you can start checking this admin panel by this command on a fresh Laravel project.

composer require tomatophp/tomato-admin
Enter fullscreen modeExit fullscreen mode

after installing it use this command to easily publish assets and make your dashboard ready

php artisan tomato-admin:install
Enter fullscreen modeExit fullscreen mode

now build your assets

yarn & yarn build
Enter fullscreen modeExit fullscreen mode

now your admin panel is ready to use.

Start Your First CRUD

you can build a CRUD after you make a migration for your table, let's say you need to build a customer's table through this migration.

you can create a new migration

php artisan make:migration create_customers_table
Enter fullscreen modeExit fullscreen mode

and after that, you can build your customer table schema.

<?phpuseIlluminate\Database\Migrations\Migration;useIlluminate\Database\Schema\Blueprint;useIlluminate\Support\Facades\Schema;classCreateCustomersTableextendsMigration{/**     * Run the migrations.     *     * @return void     */publicfunctionup(){Schema::create('customers',function(Blueprint$table){$table->id();$table->string('name')->index();$table->longText('bio')->nullable();$table->string('email')->unique()->index();$table->string('phone');$table->text('address')->nullable();$table->timestamps();});}/**     * Reverse the migrations.     *     * @return void     */publicfunctiondown(){Schema::dropIfExists('customers');}}
Enter fullscreen modeExit fullscreen mode

run migration to create the table

php artisan migrate
Enter fullscreen modeExit fullscreen mode

and here is the tomato step just use this command

php artisan tomato:generate
Enter fullscreen modeExit fullscreen mode

it will ask you about the table name you generate a migration for, and if you like to use Laravel Modules, you can just sayy on the next ask.

now register the menu to your configconfig/tomato-admin and you can find the menu class onApp\Menus and clear your config

php aritsan config:cache
Enter fullscreen modeExit fullscreen mode

BOM.. your CRUD is ready.

What is next?

are we building just an empty admin panel? no you build a lot of plugins

Tomato Roles

  • tomato roles
  • tomato settings
  • tomato notifications
  • tomato forms
  • tomato API
  • tomato artisan
  • tomato browser
  • tomato components
  • tomato logs
  • tomato dusk
  • tomato backup
  • tomato translations
  • tomato subscription

these plugins make your app very easy to build and we have a greater support community you can get full docs of this package on thislink

Top comments(4)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
junedsetiawan profile image
Jnd
  • Joined

Hey ,i Have a question, how do you install tomato admin in stages? I tried to install a new laravel project then I immediately installed tomato admin by following the instructions in the documentation, but when php artisan install:tomato-admin I select the no all option, then I try to run nothing changes. Why ? Does anyone know how to install it properly?

CollapseExpand
 
3x1io profile image
Fady Mondy
Fady Mondy3x1ioI Like Graphics, Marketing, Programming Build My Idea with my hands. be creative #music #creative #design #packaging #laravel #filament #php #VILT #TALL #vuejs
  • Location
    Cairo, Egypt
  • Education
    MIS from FAHISS
  • Work
    Senior Fullstack Developer at Queen Tech Solutions
  • Joined

you can check the new version now, it's more easy and not buggy.

docs.tomatophp.com

CollapseExpand
 
mreduar profile image
Eduar Bastidas
Full-stack Web Developer | System Engineer ⌨️ PHP, Laravel, Vuejs. Spotify Addict, Git avocated. Hardcore Gamer 🎮
  • Joined

You can't even log in because there are no test credentials. And if you register you see nothing. 🤦‍♂️

CollapseExpand
 
3x1io profile image
Fady Mondy
Fady Mondy3x1ioI Like Graphics, Marketing, Programming Build My Idea with my hands. be creative #music #creative #design #packaging #laravel #filament #php #VILT #TALL #vuejs
  • Location
    Cairo, Egypt
  • Education
    MIS from FAHISS
  • Work
    Senior Fullstack Developer at Queen Tech Solutions
  • Joined

if you are using tomato-roles, when you make

php artisan tomato-roles:install
Enter fullscreen modeExit fullscreen mode

you will get

admin@admin.com
password

as a username and password

if you not use tomato-roles
you can just go to /register

and create account

than go to /admin/login

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Fady Mondy3x1ioI Like Graphics, Marketing, Programming Build My Idea with my hands. be creative #music #creative #design #packaging #laravel #filament #php #VILT #TALL #vuejs
  • Location
    Cairo, Egypt
  • Education
    MIS from FAHISS
  • Work
    Senior Fullstack Developer at Queen Tech Solutions
  • Joined

Trending onDEV CommunityHot

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp