This is a brief description on making Laravel 5.6, Bootstrap-Vue work. Make sure to install Node and Npm. I have the following:
- Node 8.10.0
- NPM 4.6.1
Make a new laravel project
laravel new name-of-project
| #!/usr/bin/env node | |
| /** | |
| * Script: generate-safelist.js | |
| * | |
| * Reads the `safelist` array from tailwind.config.js and | |
| * generates a `resources/css/safelist.css` file containing | |
| * @source inline(...) directives for each entry. | |
| * | |
| * Usage: `node scripts/generate-safelist.js` | |
| */ |
| <?php | |
| /* | |
| May 20 2024 @ryantxr | |
| This is intended to be used on images generated by mage.space. | |
| Some images generated on mage.space have some meta data in the | |
| actual image. If the meta data exists in the file this program will | |
| output it as json. | |
| NOTE: Mage does not put the model in the meta data. |
| <?php | |
| use Illuminate\Database\Migrations\Migration; | |
| use Illuminate\Database\Schema\Blueprint; | |
| use Illuminate\Support\Facades\Schema; | |
| use Illuminate\Support\Facades\DB; | |
| return new class extends Migration | |
| { | |
| /** |
| // Capture ALL SQL to a separate sql.log | |
| // In config/logging.php add the following to the channel list | |
| 'sql' => [ | |
| 'driver' => 'single', | |
| 'path' => storage_path('logs/sql.log'), | |
| 'level' => 'debug', | |
| ], | |
| // In app/Providers/AppServiceProvider.php add the following to the boot() method. |
This is a brief description on making Laravel 5.6, Bootstrap-Vue work. Make sure to install Node and Npm. I have the following:
Make a new laravel project
laravel new name-of-project
| /* | |
| This is a wait dialog to show "please wait" while the app is doing some | |
| long running task. | |
| To call it from a view controller: | |
| WaitDialog.show(self) | |
| // start long running task | |
| // Long running task is done. | |
| WaitDialog.hide() |
| class BeanstalkClient extends AbstractBaseQueue{ | |
| public $queue; | |
| public $host; | |
| public $port; | |
| public $timeout; | |
| function __construct($timeout=null) { | |
| $this->loadClasses(); | |
| $this->host = '127.0.0.1; |
| // | |
| // Extensions.swift | |
| // ProcessCompletion | |
| // | |
| // Created by ryan teixeira on 11/2/17. | |
| // Copyright © 2017 Blazecore. All rights reserved. | |
| // | |
| import Foundation |
| /* | |
| JSON from API calls are provided as Data objects, not strings. | |
| While debugging, it is often necessary to output the JSON | |
| string somewhere. This snippet does that. | |
| */ | |
| if let data = data { | |
| print("JSON = " + String(data: data, encoding: .utf8)! ) | |
| } | |
| // Notice the use of ! since the String constructor might fail. |
| // Credit: https://stackoverflow.com/users/887210/colgraff | |
| struct Header { | |
| let version : UInt | |
| let options : UInt | |
| let records : UInt | |
| } | |
| // adds marshaling | |
| extension Header { | |
| enum Keys: String { case version, options, records } |