PHPackages                             zchted/affogato - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. zchted/affogato

ActiveLibrary

zchted/affogato
===============

Micro Micro Rawr Rawr :)

093↓100%PHP

Since Mar 5Pushed 2w agoCompare

[ Source](https://github.com/adrian21456/affogato)[ Packagist](https://packagist.org/packages/zchted/affogato)[ RSS](/packages/zchted-affogato/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Affogato
========

[](#affogato)

Composer Plugin for Laravel RDBMS Development

🔧 Laravel 12 Installation
-------------------------

[](#-laravel-12-installation)

1. Create a new Laravel app:

    ```
    laravel new affogato
    ```
2. Run the custom API install script:

    ```
    php artisan install:api
    ```
3. Add `use HasApiTokens` in App/Models/User.php
4. Link storage:

    ```
    php artisan storage:link
    ```

---

📦 Steps to Install Affogato
---------------------------

[](#-steps-to-install-affogato)

1. **Install Affogato via Composer**

    ```
    composer require zchted/affogato:dev-main
    ```
2. **Register the Service Provider**

    In `config/app.php` or your custom provider loader (like `bootstrap/providers.php`):

    ```
    Zchted\Affogato\AffogatoServiceProvider::class,
    ```
3. **Extend AffogatoController in Your Controller**

    ```
    use Zchted\Affogato\AffogatoController;

    class MyController extends AffogatoController
    {
        //
    }
    ```
4. **Run Seeder in `DatabaseSeeder.php`**

    ```
    use Zchted\Affogato\Command;

    public function run()
    {
        Command::runSeeder($this->command);
    }
    ```
5. **Register Middlewares and Exception Handler to `bootstrap/app.php`**

    This is needed to force JSON Response on the APIs.

    ```
