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
<?php | |
use App\Models\User; | |
namespace App\Nova\Metrics; | |
class NewUsers extends Value | |
{ | |
public $name = 'Customers'; | |
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
<?php | |
namespace App\Models; | |
class User extends Authenticatable | |
{ | |
use Notifiable, HasRoles, Billable; | |
public $table = 'users'; |
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
<?php | |
public function fields(Request $request) | |
{ | |
return [ | |
Textarea::make('Description') | |
->displayUsing(function($description) { | |
return Str::substr($description, 0, 100) . '....'; | |
})->onlyOnIndex(), |
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
<?php | |
Textarea::make('Description')->displayUsing(function($description) { | |
return Str::substr($description, 0, 100) . '....'; | |
}), |
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
<?php | |
/** | |
* Get the displayable label of the resource. | |
* | |
* @return string | |
*/ | |
public static function label() | |
{ | |
return 'Emails Sent'; |
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
php artisan nova:resource Account/Resources/Customers --model="App\Domains\Account\Models\Customer" |
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
import Vue from 'vue'; | |
import PubNubVue from 'pubnub-vue'; | |
import App from './App'; | |
Vue.use(PubNubVue, { | |
subscribeKey: 'YOUR SUBSCRIBE KEY HERE', | |
publishKey: 'YOUR PUBLISH KEY HERE' | |
}); | |
new Vue({ |