Skip to content

Instantly share code, notes, and snippets.


Dan Alvidrez bayareawebpro

Block or report user

Report or block bayareawebpro

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View MenuStore.js
return {
namespaced: true,
getters: {
left: (state, getters) => getters.evaluate(state.left.items),
right: (state, getters) => getters.evaluate(state.right.items),
evaluate: (state, getters, rootState, rootGetters) => (items) => {
return items.filter((item) => {
return !Object.keys(item.guard || {}).map((guard) => {
return (rootGetters[guard] === item.guard[guard])

LaravelMicro.js Repository

Implement A DataTable using the repository.

Blade Example:

    <template slot="caption">
        <i class="fa fa-tasks"></i> Tasks
View DragDrop.vue
import dragDrop from 'drag-drop'
import {HasLoadingState, HasErrors} from '../mixins'
export default {
mixins: [
data() {
View Location.php
namespace App;
use App\Traits\FullTextSearchable;
use App\Traits\Radial;
use Illuminate\Database\Eloquent\Model;
use ScoutElastic\Searchable;
class Location extends Model
View LocationIndex.php
namespace App;
use ScoutElastic\IndexConfigurator;
use ScoutElastic\Migratable;
class LocationIndex extends IndexConfigurator
use Migratable;
View Lead.php
<?php declare(strict_types=1);
namespace App\Leads;
use Carbon\Carbon;
use Illuminate\Support\Arr;
use Illuminate\Support\Str;
use Illuminate\Support\Collection;
use Illuminate\Session\Store as Session;
use Illuminate\Config\Repository as Config;
View Contract.php
<?php declare(strict_types=1);
namespace App\Leads\Leadspedia\Contracts;
use GuzzleHttp\Client;
use Illuminate\Support\Str;
use Illuminate\Support\Facades\Cache;
use Illuminate\Contracts\Support\Arrayable;
use function GuzzleHttp\Psr7\build_query;
View v-carousel.vue

JsonStore (Persistent Json Collection)

$json = Json::make(storage_path('framework/testing/json-test.json'));
$json->data->put('key', true);
You can’t perform that action at this time.