How to Install Laravel on Fedora 35 / Fedora 34 | Holhol24

48

Laravel is without doubt one of the hottest PHP frameworks on the earth, and it’s nice for builders taking a look to construct trendy internet packages. Sometimes, putting in place a construction setting will also be irritating to inexperienced persons. Thankfully, as soon as you know the fundamentals of the set up strategy of Laravel, your task can be up and working very quickly!.

Here, you’ll discover ways to set up Laravel on Fedora 35 / Fedora 34.

Install PHP on Fedora 35

Laravel calls for PHP edition 7.3 or more recent. Since Fedora 35 and Fedora 34 include PHP 8.0 and PHP 7.4, you don’t want to get PHP programs from exterior repositories.

Install PHP and a couple of different extensions with the under command.

sudo dnf set up -y php php-common php-cli php-gd php-mysqlnd php-curl php-intl php-mbstring php-bcmath php-xml php-zip

Then, take a look at the PHP edition publish the set up of programs.

php -v

Output:

PHP 8.0.13 (cli) (constructed: Nov 16 2021 18:07:21) ( NTS gcc x86_64 )
Copyright (c) The PHP Group
Zend Engine v4.0.13, Copyright (c) Zend Technologies

Install PHP Composer on Fedora 35

Composer is a dependency supervisor for PHP, and it’ll allow you to obtain and set up Laravel with the important elements on your task construction.

sudo dnf set up -y composer

Verify the composer edition.

composer --version

Output:

Composer 2.1.12 2021-11-09 16:02:04

Install Laravel on Fedora 35

After putting in PHP composer for your device, you’ll be able to simply create a Laravel task the use of it.

composer create-project laravel/laravel my_example_app

Once the task is created, pass to the task listing.

cd my_example_app

And then, get started Laravel’s native construction server the use of the Artisan CLI’s serve command.

php artisan serve

You gets the message one thing like this.

Starting Laravel construction server: http://127.0.0.1:8000

By default, Laravel listens at the localhost with port 8000. In case if you need, you’ll be able to use the --host and --port strategy to trade the listening cope with and port of Laravel, respectively.

Now, you’ll be able to open up your browser and get entry to the Laravel construction server with the IP cope with and the port quantity displayed within the earlier command output.

You will now get the under internet web page.

Laravel Development Server working on Fedora 35

Conclusion

That’s All. I’m hoping you may have discovered how one can set up Laravel on Fedora 35 / Fedora 34. Next, you’ll be able to carry out preliminary configurations and observe the documentation to be informed Laravel.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More