This document provides help on getting your Laravel instance running with the latest versions of Laravel Mix and Font Awesome. Note: This guide is for Laravel versions 5 through 7. If you are using Laravel 8, please go here.
|
|
| up.compiler('#gists-listing', function(element) { | |
| // https://github.com/alpinejs/alpine/issues/359#issuecomment-614623246 | |
| Alpine.initializeComponent(element); | |
| return function() { | |
| console.log('Destroy Alpine Nodes? Does this take care of it: https://github.com/alpinejs/alpine/pull/174/commits/8001e12f9155c0c9ef4f4e3ccb885b4f17e04915 ?') | |
| }; | |
| }); |
This document provides help on getting your Laravel instance running with the latest versions of Laravel Mix and Font Awesome. Note: This guide is for Laravel versions 5 through 7. If you are using Laravel 8, please go here.
|
|
| class ErrorBag { | |
| constructor(errors = {}) { | |
| this.setErrors(errors); | |
| } | |
| hasErrors() { | |
| return !!this.keys.length; | |
| } | |
| get keys() { |
| axios({ | |
| url: 'http://localhost:5000/static/example.pdf', | |
| method: 'GET', | |
| responseType: 'blob', // important | |
| }).then((response) => { | |
| const url = window.URL.createObjectURL(new Blob([response.data])); | |
| const link = document.createElement('a'); | |
| link.href = url; | |
| link.setAttribute('download', 'file.pdf'); | |
| document.body.appendChild(link); |
| <?php | |
| use Illuminate\Support\Facades\Password; | |
| # Generate a token in the same style as laravels password reset tokens. | |
| # Will generate something like: 785f616c4978a87ad65a899ed4133b358a4697649c55b0965a7ebb7486bd9801 | |
| /** @var DatabaseTokenRepository */ | |
| $repo = Password::getRepository(); | |
| $token = $repo->createNewToken($user); |
| //In case anyone was having the same issue in getting toastr to run with webpack and es6 | |
| 1. install openjdk | |
| `sudo apt-get install openjdk-7-jdk` | |
| 2. install `android sdk` | |
| # download android sdk | |
| wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz | |
| tar -xvf android-sdk_r24.2-linux.tgz | |
| cd android-sdk-linux/tools |
| #deb cdrom:[Ubuntu 14.04.3 LTS _Trusty Tahr_ - Beta amd64 (20150805)]/ trusty main restricted | |
| # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to | |
| # newer versions of the distribution. | |
| deb http://us.archive.ubuntu.com/ubuntu/ trusty main restricted | |
| deb-src http://us.archive.ubuntu.com/ubuntu/ trusty main restricted | |
| ## Major bug fix updates produced after the final release of the | |
| ## distribution. | |
| deb http://us.archive.ubuntu.com/ubuntu/ trusty-updates main restricted |