for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
use EasySlugger\Slugger;
if (! function_exists('slugify')) {
/**
* Generate slug
*
* @param string $text
* @return string
*/
function slugify($text)
{
return Slugger::slugify($text);
}
if (! function_exists('uniqueSlugify')) {
* Generate unique slug
function uniqueSlugify($text)
return Slugger::uniqueSlugify($text);
if (! function_exists('transcrud')) {
* Translate string but remove file key if translation not found
function transcrud($text)
$translation = trans('anavel-crud::models.' . $text);
return str_replace('anavel-crud::models.', '', $translation);