phdomiciano / tripsmanager
This is a simple CRUD of trips list with Laravel and that use the transactions by JSON.
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:JavaScript
Type:project
Requires
- php: ^8.0.2
- guzzlehttp/guzzle: ^7.2
- laravel/framework: ^9.19
- laravel/sanctum: ^3.0
- laravel/tinker: ^2.7
Requires (Dev)
- barryvdh/laravel-debugbar: ^3.7
- fakerphp/faker: ^1.9.1
- laravel/pint: ^1.0
- laravel/sail: ^1.0.1
- mockery/mockery: ^1.4.4
- nunomaduro/collision: ^6.1
- phpunit/phpunit: ^9.5.10
- spatie/laravel-ignition: ^1.0
README
This is a simple CRUD of trips list with Laravel and that use the transactions by JSON. In this system example, its possible create and delete trips registers with inputs of JSON command lines.
Requirements
- PHP ^8.1
- Composer
- Laravel ^9
Installation
Install the package through Composer.
Run the Composer require command from the Terminal:
composer require phdomiciano/tripsmanager
Create a file sqlite in folder "database" or other DB you wish (For others, configure ".env" file):
database/database.sqlite
If necessary update your requiries, run on Terminal:
composer update
composer dump-autoload
Create the database tables, run on Terminal:
php artisan migrate
Run on Terminal your php server and access the url from project in a web browser.
php artisan serve
Possibles problems in installation
*If you get a 505 error when accessing an application for the first time, run:
php artisan key:generate
*If you get a error like "\bootstrap\cache directory must be present and writable", just delete the folder "cache" and create again a new folder empty
*IF you get a error like "could not find driver (SQL:" when you try run the migrate on Terminal, remember confirm you config in ".env" file. ** If you use sqlite the conection is just:
DB_CONNECTION=sqlite
Now go up the server again.
Why Laravel
I chose to carry out this project with Laravel because it is a complete framework, with several possibilities, which follows quality and performance standards and belongs to a large community of developers, facilitating future integrations and maintenance. In addition, Laravel has many facilities for developers.
Other applied solutions
- Blade
- Eloquent
- Middleware
- Requests Forms Validation
- Dependency Injection
- SQlite
- Polymorphism