samedi 16 avril 2016

Laravel Override View::make namespace, cashier specific

How would I override the View::make('cashier::receipt'); view so that when that particular namespace is called like that, it checks my folder first and then defaults back to the vendor path.

View::addNamespace('cashier', [
    '/path/to/my/views', // check first
    '/path/to/original/views' // check second
]);



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire