Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 5, 2023. It is now read-only.
/ttallPublic archive

Laravel fronend preset for TTALL stack - Tailwindcss | Turbolinks | Alpine.js | Laravel | Livewire 🚀

License

NotificationsYou must be signed in to change notification settings

pktharindu/ttall

Repository files navigation

License: MITCI StatusTotal Downloads

An opinionated Laravel front-end scaffolding preset for TTALL stack - Tailwindcss | Turbolinks | Alpine.js | Laravel | Livewire 🚀

It comes bundled with some helpful packages and their configurations (optional):

It uses concerns oflaravel/ui through Livewire actions. So, security features of laravel/ui (ex: login throttling) are built right in. It also comes bundled with some helpful packages and their configurations (optional):

  • Laravel debugbar
  • Laravel IDE Helper
  • Php CS Fixer
  • Larastan
  • Eslint (Airbnb rules)
  • Prettier
  • Composer Git Hooks

Screen Record

If you like this package, show some love by starring the repo. ⭐❤

Contents

Installation

To install this preset on your laravel application, run:

composer require pktharindu/ttall --dev

For Basic Presets (without authentication)

To scaffold the basic preset without authentication, run:

php artisan ui ttall

For Presets with Authentication

To scaffold the basic preset, auth route entry and auth views in one go, run:

php artisan ui ttall --auth

Finally runcomposer update && npm install && npm run dev to install the new composer packages and compile your fresh scaffolding.

Configuration

Add a new i18n string in theresources/lang/XX/pagination.php file for each language that your app uses:

'previous' =>'« Previous','next' =>'Next »','goto_page' =>'Goto page #:page',// Add this line

This will help with accessibility.

<li><ahref="URL?page=2"class="..."aria-label="Goto page #2">    2</a></li>

Options

As this preset is designed to get you up-and-running quickly, it comes bundled with some extra options that will take you even further. To utilize these options, use the--option flag when installing the preset.

Usage Example:

php artisan ui ttall --option=code-helpers

Code Helpers

code-helpers option will install and configure the below packages to help you with the development:

  • Laravel debugbar
  • Laravel IDE Helper
  • Php CS Fixer
  • Larastan
  • Eslint (Airbnb rules)
  • Prettier
  • Composer Git Hooks

Scripts

A composer's script is added automatically to tellLaravel IDE Helper to rescan yourFacades files and update git hooks after everycomposer update :

"scripts": {"post-update-cmd": ["Illuminate\\Foundation\\ComposerScripts::postUpdate","@php artisan ide-helper:generate","cghooks update"    ]}

Also, Git Hooks are added to format your php files automatically before each commit.

"extra": {"hooks": {"pre-commit": ["STAGED_FILES=$(git diff --cached --name-only --diff-filter=ACM -- '*.php')","php-cs-fixer fix","git add $STAGED_FILES"        ]    }},

Scripts are also added to yourpackage.json andcomposer.json to run specific actions :

  • composer format : will usephp-cs-fixer to format your php files
  • composer test : will use thephp artisan test command to run your phpunit tests
  • composer analyse : will uselarastan to analyse your code
  • npm run format : will format your js files onresources/js folder
  • npm run lint : will find issues in your js files based on Airbnb's rules and try to fix them

Support

If you require any support please contact me onTwitter or open an issue on this repository.

Credits

This Package is inspired bylaravel-frontend-presets/tall andYannickYayo/laravel-preset-ttall. I wanted to have a combination of both. Thanks to all authors of these packages.

License

Licensed under the MIT license, seeLICENSE for details.

About

Laravel fronend preset for TTALL stack - Tailwindcss | Turbolinks | Alpine.js | Laravel | Livewire 🚀

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp