Skip to content

audetcameron/laravel-code-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

laravel-code-snippets

Snippets and Helpers I use during a Laravel build.

.bashrc aliases

alias clearallcache='php artisan route:clear && php artisan view:clear && php artisan config:clear &&
         php artisan cache:clear && php artisan clear-compiled && composer dump-autoload'

alias cachemeoutside='php artisan route:clear && php artisan view:clear && php artisan config:clear &&
         php artisan cache:clear && php artisan clear-compiled && composer dump-autoload'

alias fixstoragelink='rm -rf /home/forge/mywebsite.com/public/storage && cd /home/forge/mywebsite.com && php artisan storage:link'

alias tarmeup='tar -zcvf "mywebsite-$(date '+%Y-%m-%d').tar.gz" --exclude-from=tar_excludes.txt --exclude-vcs mywebsite.com/'

Nova Snippets

Nova Grouping

https://nova.laravel.com/docs/1.0/resources/#grouping-resources

/**
 * The logical group associated with the resource.
 *
 * @var string
 */
public static $group = 'myGroupName';

Nova Label

    /**
     * Get the displayble label of the resource.
     *
     * @return string
     */
    public static function label()
    {
        return __('My Label Name');
    }

About

Snippets and Helpers I use during a Laravel build.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published