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

v1.0.0 2022-08-15 23:39 UTC

This package is auto-updated.

Last update: 2024-05-16 03:51:07 UTC


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

laravel-logolockup-cmyk-red.svg

Build Status Total Downloads Latest Stable Version License