Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fajarwz/blog-laravel11-crud-file

An implementation of Laravel 11 CRUD and file upload from fajarwz.com/blog
https://github.com/fajarwz/blog-laravel11-crud-file

crud example-project file-upload laravel php

Last synced: 7 days ago
JSON representation

An implementation of Laravel 11 CRUD and file upload from fajarwz.com/blog

Awesome Lists containing this project

README

        

# Laravel 11: CRUD and File Upload Tutorial With Laravel Breeze
This is an implementation of Laravel CRUD tutorial. A blog about this can be found here: [Laravel 11: CRUD and File Upload Tutorial With Laravel Breeze | Fajarwz](https://fajarwz.com/blog/laravel-11-crud-and-file-upload-tutorial-with-laravel-breeze/).

## Installation

### Composer Packages
```
composer install
```

## Configuration

### Create `.env` file from `.env.example`
```
cp .env.example .env
```

### Generate Laravel App Key
```
php artisan key:generate
```

### Database Integration
1. Open `.env` file
2. Create a database and connect it with Laravel with filling the DB name in `DB_DATABASE` key
3. Adjust the `DB_USERNAME`
4. Adjust the `DB_PASSWORD`

### Migrate the Database Migration and Run the Seeder
```
php artisan migrate
```

## Run App
Install NPM packages first
```
npm install
```

Run local web server
```
php artisan serve
```

Open new console and run the app with Vite
```
npm run dev
```