Skip to content

PatrickCode1299/LaravelTaskApi

Repository files navigation

For testing follow this commands:

composer install

cp .env.example .env

php artisan key:generate

php artisan migrate

php artisan serve

Test, To create a User

Run php artisan tinker, then enter this command:

use App\Models\User;

use Illuminate\Support\Facades\Hash;

$user = User::create([ 'name' => 'Test User', 'email' => 'test@example.com', 'password' => Hash::make('patrickcode123') ]);

The above create a dummy user patrick

###Below are the api routes of this app for postman or curl:

Register route http://127.0.0.1:8000/api/register

Login route: http://127.0.0.1:8000/api/login

Task creation: http://127.0.0.1:8000/api/create_task

Task Updating: http://127.0.0.1:8000/api/update_task/{id}

Task Deletion http://127.0.0.1:8000/api/delete_task/{id}

Laravel Version is 10

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors