Complete installation guide for your Laravel API project
This starter kit includes authentication, user management, teams, roles & permissions, and invitations system out of the box.
Install PHP dependencies using Composer:
composer install
Copy the example environment file and generate an application key:
cp .env.example .envphp artisan key:generate
Update your .env file with your database credentials:
DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=your_database_name DB_USERNAME=your_username DB_PASSWORD=your_password
Create the database tables:
php artisan migrate
Optionally, seed the database with sample data:
php artisan db:seed
You can now start the Laravel development server using either command:
composer dev # Recommended - runs php artisan servephp artisan serve
Your API will be available at http://127.0.0.1:8000
After installation, the following endpoints will be available:
The starter kit includes a complete Postman collection with all API endpoints pre-configured. You'll find it in the storage/postman folder.
If you're using Laravel Valet or Laravel Herd, you can easily configure the Postman collection:
storage/postmanapi variablehttp://laravel-restify-starter-kit.test/api)
By default, the Postman environment is configured for http://127.0.0.1:8000/api
This is a standard Laravel application with minimal modifications. The main addition is the app/Restify folder where all Laravel Restify repositories are located.
app/ ├── Restify/ # Laravel Restify repositories │ ├── Users/ │ │ ├── UserRepository.php # User model wrapper │ │ └── Actions/ # Custom user actions │ ├── TeamRepository.php # Team model wrapper │ ├── Permissions/ │ │ ├── PermissionRepository.php │ │ ├── RoleRepository.php │ │ └── Actions/ # Permission-related actions │ └── Invitations/ │ ├── InvitationRepository.php │ ├── Actions/ # Invitation actions │ └── Controllers/ # Custom controllers ├── Models/ # Standard Laravel models ├── Http/Controllers/ # Standard Laravel controllers ├── Policies/ # Laravel policies └── Providers/ # Service providers
Model wrappers that define how your models are exposed via the API. Each repository corresponds to a model.
Learn more →Custom actions that can be performed on resources. Located in Actions folders within each repository.
Learn more →Each repository defines fields that represent model attributes and control data display/validation.
Learn more →app/Restify/Users/UserRepository.php to see how fields are definedNeed help? Check out the full documentation or reach out to our community.