Skip to content

Commit

Permalink
Merge pull request #38 from CodeWithDennis/add-seeder-post-create-pro…
Browse files Browse the repository at this point in the history
…ject-cmd

Add database seeding command in post-create-project scripts
  • Loading branch information
CodeWithDennis authored Oct 30, 2024
2 parents 198275b + 3ad5d0c commit afc0851
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
16 changes: 6 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

[![Pint](https://github.com/codewithdennis/larament/actions/workflows/pint.yml/badge.svg)](https://packagist.org/packages/codewithdennis/larament)
[![PEST](https://github.com/codewithdennis/larament/actions/workflows/pest.yml/badge.svg)](https://packagist.org/packages/codewithdennis/larament)
[![PHPStan](https://github.com/CodeWithDennis/larament/actions/workflows/phpstan.yml/badge.svg)](https://github.com/CodeWithDennis/larament/actions/workflows/phpstan.yml)
[![Latest Version on Packagist](https://img.shields.io/packagist/v/codewithdennis/larament.svg?style=flat-square)](https://packagist.org/packages/codewithdennis/larament)

![larament.png](https://raw.githubusercontent.com/CodeWithDennis/larament/main/resources/images/larament.png)


Kickstart your project and save time with Larament! This time-saving starter kit includes a Laravel project with FilamentPHP already installed and set up, along with extra features.

> [!NOTE]
Expand Down Expand Up @@ -95,8 +95,9 @@ Since [Laravel 11](https://laravel.com/docs/11.x/releases#application-defaults)
php artisan migrate --seed
```

### Alternative Installation Method
### CLI Installation

You can also use the following command to create a new project with Larament.

```bash
composer create-project --prefer-dist CodeWithDennis/larament example-app
Expand All @@ -105,20 +106,15 @@ composer create-project --prefer-dist CodeWithDennis/larament example-app
If you don't want to remember the composer installation syntax for future projects, you can create an alias for your terminal:

```bash
alias larament="composer create-project --prefer-dist CodeWithDennis/larament"
alias larament="composer create-project --prefer-dist CodeWithDennis/larament my-cool-app"
```

This allows you to simply use `larament project-example` in your terminal.
This allows you to simply use `larament my-cool-app` in your terminal.

```bash
larament project-example
cd project-example/
npm install && npm run build
php artisan db:seed
php artisan serve
larament my-cool-app
```


## Screenshots
![user-global-search](https://raw.githubusercontent.com/CodeWithDennis/larament/main/resources/images/user-global-search.jpg)

Expand Down
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@
"post-create-project-cmd": [
"@php artisan key:generate --ansi",
"@php -r \"file_exists('database/database.sqlite') || touch('database/database.sqlite');\"",
"@php artisan migrate --graceful --ansi"
"@php artisan migrate --graceful --ansi",
"@php artisan db:seed --ansi",
"npm install",
"npm run build"
],
"review": [
"@pint",
Expand Down

0 comments on commit afc0851

Please sign in to comment.