mehmetb/quotes

Laravel publish view variable by config

1.0.0 2022-09-26 08:24 UTC

This package is auto-updated.

Last update: 2024-04-26 11:54:04 UTC


README

This package automatically sends the keys defined in the config file to the active view page. If there are names in the route directory and keys in the config file, it automatically sends the values. This is a simple package.

Setup

composer require mehmetb/quotes

Register providers config\app.php

Quotes\QuotesServiceProvider::class,

Run

php artisan quotes:install

Usage

You can access it from a variable named $page in the view blade file. https://github.com/mehmetbltt23/Laravel-auto-view-publish-quotes/tree/master/src/Examples