& Better File structure for the typescript project. Located in resources/js
folder.
git clone [email protected]:toohard2explain/levis-laravel-template.git
.env.example
file and rename it to .env
and fill in the necessary information.composer install
and npm install
to install the necessary packages.php artisan key:generate
to generate the application key.php artisan migrate
to migrate the database.npm run dev
to compile the assets.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.