Sep 14, 2022Member-onlyHandle Svelte Forms Easily With ActionsCreating forms can be boring… usually in Svelte JS and in general with other frameworks, you have to create the data, process it, validate it, send it, handle the response and also write down the html markup. <script> const data = {…Sveltejs4 min readSveltejs4 min read
Sep 13, 2022Member-onlyLocalstorage in Javascript: a better and easier way using getters and settersWe all know that in JS we can use localStorage to persist data between pages reload like this: let myItem = localStorage.getItem('item') ?? null; // Do stuff localStorage.setItem('item', 'data'); // Page refresh console.log('myItem: ', myItem); // Prints data Yes but is so unelegant and verbose. And what if we want…Javascript Tips2 min readJavascript Tips2 min read
Sep 13, 2022Member-onlyHow to do Forms in Laravel InertiaJS + Svelte (Should work on Vue and React Too)If you read my series on Laravel InertiaJS + Svelte, you might noticed there is much more to be covered. Forms are an important part of a Laravel App, so handle them is a must. You might get tempted to use axios to do all the frontend calls, but using…Svelte4 min readSvelte4 min read
Sep 7, 2022Member-onlyLaravel+InertiaJS+Svelte+Bootstrap Auth: Step By Step Tutorial Part 2You are probably seeing errors variable let’s set it up in HandleInertiaRequest middleware: <?php namespace App\Http\Middleware; use Illuminate\Http\Request; use Illuminate\Support\Facades\Auth; use Inertia\Middleware; class HandleInertiaRequests extends Middleware { /** * The root template that's loaded on the first page visit. * *…Laravel2 min readLaravel2 min read
Sep 7, 2022Member-onlyLaravel+InertiaJS+Svelte+Bootstrap Auth: Step By Step Tutorial Part 1A few days ago i had to write a landing page, but tired of the complexity of react and angular, and i didn’t want to use something like AlpineJS or old grandpa jQuery… I tried Svelte and i found it amazing ! Fast to develop, fast to run, very simple…Svelte6 min readSvelte6 min read
Mar 7, 2022Member-onlyHow To Write A Simple PHP ShellDISCLAIMER: This should be used just for penetration testing purpose. If you use it without the authorization of the owner of the website, you could be in legal trouble. Do you have access to a php server and need a php shell, but you don’t want to spend days creating…PHP3 min readPHP3 min read
Mar 4, 2022Member-onlyHow To Automate Connect, Generate And Add An SSH Key To A ServerThis is probably the last article you will read about connecting, generating and adding ssh keys to a server. Let’s write a script that will do it for us. First let’s generate the ssh key. Open a terminal and put this: $ ssh-keygen -t rsa -b 4096 This will generate…Ssh3 min readSsh3 min read
Feb 27, 2022Member-onlyHow To Debug Wordpress Using XDebug and Visual Studio CodeAre you writing a Wordpress Theme, Plugin, or simply something is not working anymore ? Let’s fix it. Using print_r, echo and dd can be very usefull, but it has its own limits…. To do something more serious and to understand the logic and the flow behind a software you…Xdebug4 min readXdebug4 min read
Feb 21, 2022Member-onlyLaravel Artisan How To Make ControllerDo you need to make a new controller in Laravel ? It is very simple, just run this command: php artisan make:controller MyCustomController And that’s it ! This will create an empty controller in directory app/Http/Controllers with no methods… But I need more methods That is why you can make a resource controller, a controller…Laravel2 min readLaravel2 min read
Feb 15, 2022Member-onlyHow To Display Flash Messages With Laravel 9 + Jetstream + Vue Inertia.JSLaravel Jetstream can be confusing, so i decided to write articles to make it easy to develop using this stack. Laravel Jetstream + Vue Inertia.JS is a very powerfull stack you can use to develop all kind of applications really fast. …PHP2 min readPHP2 min read