$json = Json::make(storage_path('framework/testing/json-test.json'));
$json->data->put('key', true);
$json->save()
| <?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; |
| <script> | |
| export default { | |
| props: { | |
| 'slides': { | |
| type: Array, | |
| required: true, | |
| } | |
| }, | |
| data () { | |
| return { |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| use Illuminate\Foundation\Composer; | |
| class DumpAutoload extends Command | |
| { | |
| /** |
| <script> | |
| import { | |
| HasErrors, | |
| InteractsWithUrls, | |
| CountsCharacters, | |
| Sluggable, | |
| HasResponseMessage | |
| } from './mixins/index' | |
| export default { | |
| name: 'v-form', |
| <?php declare(strict_types=1); | |
| namespace App\Traits; | |
| use Illuminate\Database\Eloquent\Model; | |
| use Illuminate\Support\Str; | |
| trait UniversallyUnique{ | |
| /** | |
| * Set Incrementing |
| <script> | |
| import HasErrors from '../../mixins/HasErrors' | |
| import TitleCase from "../../mixins/TitleCase" | |
| export default { | |
| mixins: [HasErrors, TitleCase], | |
| data(){ | |
| return { | |
| propValue: this.value, | |
| } | |
| }, |
| <?php namespace App; | |
| use Pusher\Pusher; | |
| /** | |
| * The Pusher Api Class | |
| * (not implemented yet) | |
| */ | |
| class PusherApi | |
| { | |
| protected $pusher; |
| /** | |
| * Pusher API: User Online Status | |
| * Not Implemented (may need for future use) | |
| */ | |
| Route::any('online', function(Request $request){ | |
| /** @var $pusher \App\PusherApi */ | |
| $pusher = app()->make('pusherApi'); | |
| $channel = $request->get('channel', 'presence-App.Job.9'); | |
| $user_id = $request->get('user_id', 2); |