<?php
namespace App\Nova;
class User extends Resource
{
public static $model = 'App\\User';
public static function newModel()\Laravel\Nova\Fields\Avatar::make('Avatar'),
\Laravel\Nova\Fields\Boolean::make('Active'),
\Laravel\Nova\Fields\Code::make('Snippet'),
\Laravel\Nova\Fields\Country::make('Country'),
\Laravel\Nova\Fields\Currency::make('Price'),
\Laravel\Nova\Fields\Date::make('Birthday'),
\Laravel\Nova\Fields\DateTime::make('Updated At'),
\Laravel\Nova\Fields\File::make('Attachment'),
\Laravel\Nova\Fields\Gravatar::make(),Project model
public function statuses()
{
return $this->belongsToMany('App\Status');
}
public function status()
{
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| config.vm.synced_folder "~/Code", "/home/vagrant/Code", type: "nfs", mount_options: ['rw', 'vers=3', 'tcp', 'fsc'] # the fsc is for cachedfilesd | |
| sudo apt-get install cachefilesd | |
| sudo echo "RUN=yes" > /etc/default/cachefilesd | |
| git config core.preloadindex true |
Within comment resource
public static $searchRelations = [
'post' => ['title'],
'video' => ['title'],
];And here is the comment model
class Comment {
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div class> | |
| <div class="bg-grey-light h-1"></div> | |
| <div class="flex"> | |
| <div class="flex-1" v-for="s in steps" :key="s"> | |
| <div | |
| v-if="step >= s" | |
| class="bg-blue -mt-1 h-1" | |
| :class="{ 'w-1/2': step == s, 'w-full': step < s }" | |
| ></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export PATH=~/.composer/vendor/bin:$PATH | |
| fresh() { | |
| php artisan migrate:fresh | |
| } | |
| seed() { | |
| php artisan db:seed |
OlderNewer
