Customising Views

The vendor:publish command will copy the Peddle views to your resources/views/vendor/peddle folder. You can customise these views to suit your brand and preferences. The x-peddle-layout component includes Tailwind (from CDN), so there's nothing you need to add to your build tools to start styling your app.

Take a look at the docs for Limiting Features By Subscription to learn more about how to control when and where Peddle's auth system is used.

View composers

If you want to send your own data into the Peddle views you've customised; you can use View Composers. Add the following to your app service provider, to get started:

namespace App\Providers;

use Illuminate\Support\Facades\View;
use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
    public function boot()
            function($view) {
                $view->with('data', getData());

There's a bunch to learn, about View Composers. You should definitely take a look at the official docs to learn more.

The first argument is the path to the view you want to send extra data to. In this case, we're making {{ $data }} available to resources/views/vendor/peddle/home.blade.php. The first argument can be a single string for a single view, or it can be an array of strings for multiple views.