Skip to content

Laravel Auth API is a Complete Build of Laravel 9 with Admin and Store owner login with Admin User Roles and Permissions, User Profiles, and user, store, Faq, blogs management system and more . [Admin Panel] (https://github.com/dexbytesinfotech/livewire)

dexbytesinfotech/laravel-api

Repository files navigation

Moadcar API

Lib

  • Laravel 9.x
  • Twillo (SMS)
  • Firebase (Push Notifications)

Installation

  1. Run git clone https://github.com/dexbytesinfotech/laravel-api.git laravel-api
  2. Create a MySQL database for the project - laravel-example
  3. From the projects root run cp .env.example .env
  4. Configure your .env file
  5. From the projects root folder run composer update
  6. From the projects root folder run php artisan key:generate
  7. From the projects root folder run php artisan migrate:fresh --seed
  8. From the projects root folder run composer dump-autoload
  9. From the projects root folder run php artisan storage:link
  10. From the projects root folder run php artisan l5-swagger:generate (https://github.com/DarkaOnLine/L5-Swagger)
  11. From the projects root folder run (local) php artisan schedule:work for server use supervisor
  12. From the projects root folder run (local) php artisan schedule:work for server use scheduling * * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1

Storage folder Ownership and Permission

  1. Check the permissions on the storage directory: chmod -R 775 storage
  2. Check the ownership of the storage directory: : chown -R www-data:www-data storage

Seeds

Seeded Roles
  • Unverified
  • User
  • Admin
  • Manager
Seeded Users
Email Password Access
admin@admin.com admin123 Admin Access

API keys

Remove public from url

RewriteEngine On RewriteRule ^(.*)$ public/$1 [L]

Cron Jobs

  1. Send scheduled push notification Push\NotificationController@sendScheduledPushNotification

S3 public Dummy images

{ "Version": "2008-10-17", "Statement": [ { "Sid": "AllowPublicRead", "Effect": "Allow", "Principal": { "AWS": "" }, "Action": "s3:GetObject", "Resource": "arn:aws:s3:::{{folder path}}" } ] }

supervisorctl Jobs

sudo supervisorctl stop all sudo supervisorctl reread sudo supervisorctl update sudo supervisorctl start all ps aux | grep artisan

About

Laravel Auth API is a Complete Build of Laravel 9 with Admin and Store owner login with Admin User Roles and Permissions, User Profiles, and user, store, Faq, blogs management system and more . [Admin Panel] (https://github.com/dexbytesinfotech/livewire)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published