php artisan make:command CreateSuperUserOpen app/Console/Commands/CreateSuperUser.php and insert
<?php
namespace App\Console\Commands;| #!/bin/bash | |
| echo "Testing sudo..." | |
| sudo true | |
| if [ $? -ne 0 ] | |
| then | |
| echo "ERROR: You must be able to sudo to run this script."; | |
| exit 1; | |
| fi; |
| <?php | |
| namespace App; | |
| use Illuminate\Notifications\Notifiable; | |
| use Illuminate\Foundation\Auth\User as Authenticatable; | |
| class User extends Authenticatable | |
| { | |
| use Notifiable; |
| <?php | |
| namespace App\Console\Commands; | |
| use Illuminate\Console\Command; | |
| class Example extends Command | |
| { | |
| /** | |
| * The name and signature of the console command. |
| #!/usr/bin/env python | |
| # coding: utf-8 | |
| # Copyright 2017, Nigel Small | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 |
| <?php | |
| namespace App\Providers; | |
| use Illuminate\Http\JsonResponse; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Support\Facades\Response; | |
| use Illuminate\Support\ServiceProvider; | |
| class ResponseMacroServiceProvider extends ServiceProvider |
| jQuery.fn.selectText = function () { | |
| this.find('input').each(function () { | |
| if ($(this).prev().length == 0 || !$(this).prev().hasClass('p_copy')) { | |
| $('<p class="p_copy" style="position: absolute; z-index: -1;"></p>').insertBefore($(this)); | |
| } | |
| $(this).prev().html($(this).val()); | |
| }); | |
| var doc = document; | |
| var element = this[0]; | |
| console.log(this, element); |
| <!-- leyouts/app.blade.php --> | |
| @if (View::hasSection('breadcrumb')) | |
| @yield('breadcrumb') | |
| @else | |
| @yield('title', 'Dashboard') | |
| @endif | |
| <!-- files/create.blade.php --> | |
| @extends('layouts.app') |
| <?php | |
| function panorama($file_name, $water_mark = false, $r = 255, $g = 255, $b = 255) | |
| { | |
| list($width_x, $size) = getimagesize($file_name); | |
| if ($width_x < $size) { | |
| throw new Exception('The panorama must be horizontal'); | |
| } |
| <?php | |
| namespace Finagin\Ad\Helpers; | |
| use Exception; | |
| abstract class AbstractComparable | |
| { | |
| /** | |
| * Equals $this and $other instances |