In this post, I'll create an app from the ground up. I'll assume you have PHP, Laravel and Composer. Of course a mysql DB for storing "everything." All the code it's here for reference.
Let's create a new app.
{ | |
"editor.multiCursorModifier": "ctrlCmd", | |
"editor.snippetSuggestions": "top", | |
"editor.formatOnPaste": false, | |
"editor.renderWhitespace": "all", | |
"editor.scrollBeyondLastLine": false, | |
"files.insertFinalNewline": true, | |
"editor.find.seedSearchStringFromSelection": true, | |
"editor.fontSize": 15, | |
"editor.tabSize": 4, |
// Place your key bindings in this file to overwrite the defaults | |
[ | |
{ | |
"key": "cmd+y", | |
"command": "default:redo" | |
}, | |
/** | |
* Activity Bar | |
**/ | |
{ |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\DB; | |
class UpdateCrops extends Command | |
{ | |
/** |
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\DB; | |
class DeleteCrops extends Command | |
{ | |
/** |
/** | |
* The subscriber classes to register. | |
* | |
* @var array | |
*/ | |
protected $subscribe = [ | |
'App\Listeners\TwillEventSubscriber', | |
]; | |
<?php | |
namespace A17\Twill\Commands; | |
use Carbon\Carbon; | |
use Illuminate\Database\DatabaseManager; | |
use Illuminate\Database\Query\Builder; | |
use Illuminate\Support\Collection; | |
use Illuminate\Support\Str; | |
use A17\Twill\Models\Media; |