This package content is developed to set content by page
Use the package manager package to install foobar.
composer require eyupinann/quote
We add this code to the providers part in config/app.php so we import the providers part of our package
eyupinann\Quote\BlogPackageServiceProvider::class
We run our provider file with this command. Our migration and view files are created
php artisan vendor:publish --provider="eyupinann\Quote\BlogPackageServiceProvider" --tag="page"
php artisan migrate
Using this function, we send the page name and content to the relevant function and return it.
use eyupinann\Quote\Index;
public function App(Index $index) {
return $index->page('About','info@google.com');
}
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.