Getting started:
Related tutorials:
| # Install these packages (use your favorite AUR tool here) | |
| yay -S minikube kubectl docker-machine-driver-kvm2 libvirt qemu-headless ebtables | |
| # Get libvirt going | |
| sudo systemctl enable libvirtd.service | |
| sudo usermod -a -G libvirt $(whoami) | |
| # This fix thanks to http://blog.programmableproduction.com/2018/03/08/Archlinux-Setup-Minikube-using-KVM/ | |
| sudo virsh net-autostart default |
| <?php | |
| namespace App\Macros\QueryBuilder; | |
| use Illuminate\Support\Collection; | |
| use Illuminate\Database\Eloquent\Builder; | |
| class JsonPaginate | |
| { |
| <?php | |
| /* For more details see: http://laraget.com/blog/select2-and-laravel-ajax-autocomplete */ | |
| namespace App\Http\Controllers\Select2Ajax; | |
| use App\Tag; | |
| use Illuminate\Http\Request; | |
| use App\Http\Requests; | |
| use App\Http\Controllers\Controller; | |
| class TagController extends Controller |
Getting started:
Related tutorials:
| <? | |
| if ($request->has('avatar')) { | |
| $avatar = $request->file('avatar'); | |
| $filename = time() . '.' . $avatar->getClientOriginalExtension() ; | |
| $relative_file_path = '/images/uploads/' . $filename; | |
| $absolute_file_path = public_path($relative_file_path); | |
| Image::make($avatar)->resize(350, 350)->save($absolute_file_path); | |
| $contact = Contact::find($request->input('contact_id')); | |
| $old_image_abs_path = public_path($contact->image); | |
| if (file_exists($old_image_abs_path) ) { |
Author: Chris Lattner
| // Based on Laravel's base setup. This is the directory structure until the component | |
| // later on, below this files, I'll show the contents of app.js and store.js | |
| [assets] | |
| |-- [sass] | |
| |-- [js] | |
| |-- app.js | |
| |-- store.js | |
| |-- setup.js | |
| |-- [components] |
In this php example (app/Http/Controllers/Auth/LoginController.php) my model is called Client
and the custom field for login validation is status. (Client->status)
Add in your resources/lang/en/auth.php file :
'failed_status' => 'Your account is inactive yet. Please confirm your e-mail address.',| # CREATED BY BEN O'SULLIVAN / BIGBENO37 (GITHUB.COM/BIGBENO37) | |
| # LICENSED UNDER CREATIVE COMMONS 'Attribution 4.0 International' LICENSE | |
| # https://creativecommons.org/licenses/by/4.0/ | |
| # FEEL FREE TO USE AND ADAPT THIS SCRIPT IN COMMERCIAL AND NON COMMERICAL PRODUCTS | |
| # AS LONG AS PROPER ACCREDITATION IS GIVEN | |
| # VARIABLES | |
| echo -e "\x1B[01;95mWhat would you like to name your Laravel project?\x1B[0m" | |
| read LARAVEL_PROJECT_NAME |
This a collection of interesting links found in The Imposter's Handbook by Rob Conery.
Content: