Hello everybody !

Today we will create a modal with Laravel Livewire and without jQuery, actually without javascript at all. How cool is Livewire?

We will use Laravel 8 and Bootstrap 4, but feel free to use whatever CSS Framework you want, from Tailwind CSS to Bulma… It doesn’t matter. Actually you could just use pure CSS.

First we need to install livewire, you might already have it…

$ composer require livewire/livewire

Now let’s add our Modal Component:

$ php artisan make:livewire Modals/MyExampleModal

If you want to go deeper on how to configure livewire, you should read this tutorial: https://laravel-livewire.com/docs/2.x/quickstart

On the previous story i introduced you on some way to program in PHP instead of the old ways, now let’s continue with the infamous “mysqli” or even worse “mysql” functions.

Not only did development stop long ago on mysql, but it was deprecated as of PHP 5.5.0, and has been officially removed in PHP 7.0. — https://phptherightway.com/#databases

Modernizing Database Development

The infamous old way:

<?php // Example of old style, bad mysql db access $host = "localhost"; $username = "username"; $password = "password"; $dbname = "myapp"; // Create connection $conn = new mysqli($host, $username, $password, $dbname); // Check connection if ($conn->connect_error) {…

This article for some of you can be obvious, for others can be inspiring, but i wanted to write it because i see a lot of bad php code, even if it is 2021.

Sorry for my bad english, but i’m not a native english speaker. I do my best. I hope you understand me. Thanks.

Php is the web. The web was born thanks to PHP. From Wordpress To Facebook, PHP runs most of the web… And if it was an embarassing language, now it is a mature and modern OOP language that has nothing to envy to Java…

Setting up nodejs with runcloud.io can be confusing, but in reality it is very easy.

First, connect to your server with ssh:

ssh runcloud@yourserver.runcloud

Then cd to your home directory, become root and install nodejs + npm:

yourserver.runcloud $ cd ~
yourserver.runcloud $ su
# Insert root password

Go to: https://github.com/nodesource/distributions/blob/master/README.md

Choose your distribution and follow the instruction to install nodejs, you need to. I will put the instructions for my specific case:

# Using Ubuntu
curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs

Then type node and npm to see if they are installed.

After i moved from Torino to Marche region, i found an house where to stay for free, so i do not have to worry about paying rent.

This is paying really well, i can save money to continue my digital nomad journey to the world. Some customers popped in.

Internet is working fine, and i think i will try the FLAT 4G internet and see how it works.

I cannot wait to come back to South East Asia, and maybe travel to Tunisia, Turkey, Georgia and i really want to spend some time in Iran because it is dope.


I was living in Thailand, Chiang Mai. I stayed there for more than 3 years but money was running out. My Dev Freelancing business was stagnant. The hot and smoky season in April was killing me, it was around 40°, and i had barely the money to pay my rent, even if it was very cheap. A friend of mine offered me to help me to find a dev job in the UK. I didn’t meet him before, but he has a family, 2 kids, so i thought he was trustworthy and i didn’t have nothing to lose. I also…

[CLICCA QUI] -> http://bit.ly/njbet2

Ti presento il Matched Betting, conosciuto anche come Mangia Bonus.

La tecnica che consente di guadagnare sfruttando i bonus scommesse offerti dai vari bookmakers, sisal, eurobet, williamhill, ecc…

In questo articolo ti illustrerò un metodo che consente di guadagnare utilizzando diversi siti online e approfittare dei loro bonus per “ripulirli” senza giocare di azzardo. Ripeto: NON si tratta di gioco d’azzardo.

Non è quindi un metodo per guadagnare scommettendo o per vincere sempre alle scommesse.

Oltre a spiegarti per filo e per segno cos’è e come funziona il matched betting, ti presento NinjaBet.

E’ il sito…

Mark Caggiano

Internet Marketer, Web Developer, Traveler

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store