Skip to content

My laravel template including eslint rules for typescript, prettier, shadcn-ui, tailwind, react, spatie-permissions, laravel-impersonate, lowercased typescript structure and better interia handling.

Notifications You must be signed in to change notification settings

toohard2explain/levis-laravel-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 git@github.com: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.

About

My laravel template including eslint rules for typescript, prettier, shadcn-ui, tailwind, react, spatie-permissions, laravel-impersonate, lowercased typescript structure and better interia handling.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published