Skip to content

lorenzoalulithos/laravel-12-nuxt-3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-12-and-nuxt-template-name

laravel-12-and-nuxt-template-description


This repo can be used to scaffold a new Laravel project. Follow these steps to get started:

  1. Press the Use template button at the top of this repo to create a new repo with the contents of this skeleton.
  2. Run php init.php to run a script that will replace all placeholders throughout all the files. It also create a .env file.
  3. Have fun with your new Laravel project.

Description

Laravel template to boot a fresh new Laravel project in seconds.

Startup

Start DDEV

ddev start

Install php dependencies

ddev composer install

Run database migration

The project uses two database:

  • For local environment: db
  • For testing environment: db_test

Migrations on db_test are not required since RefreshDatabase trait is used. See Resetting The Database After Each Test for more information.

ddev php artisan migrate

Run seeders

ddev php artisan db:seed

To set up a fresh version of database and run seeders at the same time:

ddev php artisan migrate:fresh --seed

Styles and static analyzers

Run checks prior to commit

ddev composer test-style

Fix style in project with PHP CS Fixer:

ddev exec ./vendor/bin/php-cs-fixer fix

Fix style in project with PHP Code Beautifier and Fixer :

ddev exec ./vendor/bin/phpcbf

To run Php Insights with verbose output:

ddev exec ./vendor/bin/phpinsights -v

Testing

Run tests with:

ddev php artisan test

or:

ddev exec ./vendor/bin/phpunit

Coverage

Run tests coverage with:

ddev xdebug

and:

ddev exec XDEBUG_MODE=coverage php artisan test

Reports are in public/coverage and visible at

https://laravel-12-and-nuxt-template.ddev.site/coverage

Queues

By defaults, queues are sync:

QUEUE_CONNECTION=sync

It's possibile to set the async with:

QUEUE_CONNECTION=redis

Redis is used as message queues manager.

Local development

ddev php artisan queue:work

Test

During tests, queues are sync since in phpunit.xml there is:

<server name="QUEUE_CONNECTION" value="sync"/>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published