Cara Membuat Slug Di Laravel
This package offers taggable behaviour for your models. After the package is installed the only thing you have to do is add the HasTags
trait to an Eloquent model to make it taggable.
Mahir Koding – Membuat Database Seeder di Laravel dengan Faker – Beberapa bulan yang lalu, saya sudah pernah membuat postingan tentang bagaimana cara untuk membuat migration di Laravel. Sekedar review saja, migration merupakan salah satu fitur yang tersedia di Laravel untuk membantu kita dalam proses pembentukan database.
But we didn't stop with the regular tagging capabilities you find in every package. Laravel Tags comes with batteries included. Out of the box it has support for translating tags, multiple tag types and sorting capabilities.
Slug Example In Laravel
You'll find the documentation on https://docs.spatie.be/laravel-tags/v2.
Here are some code examples:
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Requirements
This package requires Laravel 5.8 or higher, PHP 7.2 or higher and a database that supports json
fields and functions such as MySQL 5.7 or higher.
Installation
You can install the package via composer:
The package will automatically register itself.
You can publish the migration with:
After the migration has been published you can create the tags
and taggables
tables by running the migrations:
You can optionally publish the config file with:
This is the contents of the published config file:
Documentation
You'll find the documentation on https://docs.spatie.be/laravel-tags/v2.
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the laravel-tags
package? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
If you've found a bug regarding security please mail freek@spatie.be instead of using the issue tracker.
Testing
Laravel Slug Seo Url
- Copy
.env.example
to.env
and fill in your database credentials. - Run
composer test
.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email freek@spatie.be instead of using the issue tracker.
Postcardware
You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using.
Our address is: Spatie, Samberstraat 69D, 2060 Antwerp, Belgium.
We publish all received postcards on our company website. Inde of ganpati songs.
Credits
Support us
Spatie is a webdesign agency based in Antwerp, Belgium. You'll find an overview of all our open source projects on our website.
Does your business depend on our contributions? Reach out and support us on Patreon.All pledges will be dedicated to allocating workforce on maintenance and new awesome stuff.
License
The MIT License (MIT). Please see License File for more information.