Supported Versions of Laravel
Laravel 10+ are supported. It feels like this section needs more than one sentence but it really doesn’t. That first one said all that needs saying.Install Shopper
Shopper is really easy to install. After creating your new app or in an existing Laravel app (10+). There are 2 steps to follow to install Shopper.- Run
php artisan config:clearto make sure your config isn’t cached. - Install
shopper/frameworkpackage with Composer.
By default, all shopper tables are prefixed with
sh_ to avoid conflicts with existing tables in your database.
But you can update this configuration according to your needPrepare your User Model
Extend your current User Model (usuallyapp/Models/User.php) using the Shopper\Core\Models\User as Authenticatable alias:
app/Models/User.php
Create an Admin user
Now we can create a new superuser and sign in into the Dashboard and start creating some content. Run the following command to create a user with supreme (at the moment of creation) rights:New Shopper Directory
After Shopper is installed, you’ll have 1 new directory in your project:config/shopper/
Publish Vendor Files
If you want to publish again Shopper’s vendor files run these commands:php artisan serve
After that, run composer dump-autoload to finish your installation!
If using Laravel Valet or Laravel Herd you can easily access with your project name with .test at the end when you navigate on you project.