Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 2.26 KB

README.md

File metadata and controls

48 lines (35 loc) · 2.26 KB

What's inside?

  • 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.

How to use?

  1. Clone this repository git clone [email protected]:toohard2explain/levis-laravel-template.git
  2. Duplicate .env.example file and rename it to .env and fill in the necessary information.
  3. Run composer install and npm install to install the necessary packages.
  4. Run php artisan key:generate to generate the application key.
  5. Run php artisan migrate to migrate the database.
  6. Run npm run dev to compile the assets.
  7. Run php artisan serve to start the server.

We would recommend to use Laravel Herd for the development environment.

Models in Typescript

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.

License

The Laravel framework is open-sourced software licensed under the MIT license.