Menu

ToGO for Laravel developers: the artisan commands you know, in Go
πŸ“°

ToGO for Laravel developers: the artisan commands you know, in Go

DEV Community: laravelΒ·Fady MondyΒ·14 days ago
#VxDTbTsd
#devtolaravel#devto#dev#togo#laravel
Reading 0:00
15s threshold

I have written PHP and Laravel for more than ten years, including 60+ Filament plugins under TomatoPHP. When I started building services in Go, what I missed was not the language. It was php artisan make:... .

ToGO is built so a Laravel developer feels at home on day one. Here is the translation table I wish I had.

The command map

Laravel ToGO

laravel new app togo new app

php artisan make:model Post -mcr togo make:resource Post title:string body:text

php artisan make:model togo make:model

php artisan make:controller togo make:controller

php artisan migrate togo migrate

php artisan db:seed togo seed

php artisan serve + npm run dev togo dev / togo serve

composer require vendor/package togo install togo-framework/<plugin>

custom artisan command togo make:plugin or any togo-<cmd> binary on your PATH

Concept by concept

Eloquent β†’ sqlc. In Laravel you write Post::where('published', true)->get() . In ToGO you write the SQL once in a query file and sqlc generates a typed Go function.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.