- Laravel
- React (Interia)
- JetBrains IDE Config
- EsLint Config
- TailwindCSS
- shadcn-ui
- Prettier
- Pint
- Spatie laravel-permission
- 404lab laravel-impersonate
& Better File structure for the typescript project. Located in resources/js
folder.
- Clone this repository
git clone git@github.com:toohard2explain/levis-laravel-template.git
- Duplicate
.env.example
file and rename it to.env
and fill in the necessary information. - Run
composer install
andnpm install
to install the necessary packages. - Run
php artisan key:generate
to generate the application key. - Run
php artisan migrate
to migrate the database. - Run
npm run dev
to compile the assets. - Run
php artisan serve
to start the server.
We would recommend to use Laravel Herd for the development environment.
Unfortunately you have to create them manual but it's easier due to our new file structure and extensions.
Create a new file in resources/js/types/models
folder.
import { Identifiable, Model } from "@/types";
export interface User extends Model, Identifiable {
name: string;
email: string;
email_verified_at?: string;
}
The Model
interface is for the created_at
and updated_at
fields. The Identifiable
interface is for the id
field.
The Laravel framework is open-sourced software licensed under the MIT license.