Within comment
resource
public static $searchRelations = [
'post' => ['title'],
'video' => ['title'],
];
And here is the comment
model
class Comment {
export PATH=~/.composer/vendor/bin:$PATH | |
fresh() { | |
php artisan migrate:fresh | |
} | |
seed() { | |
php artisan db:seed |
<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> |
Within comment
resource
public static $searchRelations = [
'post' => ['title'],
'video' => ['title'],
];
And here is the comment
model
class Comment {
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 |
Project model
public function statuses()
{
return $this->belongsToMany('App\Status');
}
public function status()
{
\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(),
<?php
namespace App\Nova;
class User extends Resource
{
public static $model = 'App\\User';
public static function newModel()