php-en-MAC-M1_-guia

Installation

Clone the repository

git clone 

Install dependencies

composer install

Create a copy of your .env file

cp .env.example .env

Generate an app encryption key

php artisan key:generate

Create an empty database for our application

In the .env file, add database information to allow Laravel to connect to the database.

Migrate the database

php artisan migrate

Install node modules

npm install

Build assets using Laravel Mix

npm run build

Start the local development server

php artisan serve

You can now access the server at http://localhost:8000

.[!Note] Solo para Mac

Laravel Log Error

sudo chown -R daemon:daemon ''

Error Git Init

sudo  chmod -R 775 ''

BoostrapCache

chmod -R 755 storage chmod -R 755 bootstrap/cache

.[!Important]

React correctly on mac with Laravel

php artisan storage:link
npm run dev