How to Install Laravel 11 on Mac OS

Do you want to install Laravel 11 on macOS system? First of all, for this, it is necessary to install PHP and Composer in your macos system. Because with their help you can install Laravel 11 in your Mac.

Now you will not have to do any much effort to install Laravel 11 in macOS system, there are two official ways to install it in your system, the first is the official Laravel installer and the second is the composer command.

How to Install Laravel 11 on mac OS

Here are two ways to install laravel 11 on macos system:

#1: Using Composer

Let’s look at the first way, in which we will use Composer to install laravel 11.

So you open the terminal window or command line of your macOS system and type the “composer create-project --prefer-dist laravel/laravel blog” command on it and press enter, and wait for a few seconds, yes it will install Laravel 11 in your macOS system:

composer create-project --prefer-dist laravel/laravel blog

Once Laravel 11 is completely installed, next you need to navigate to the project directory using the cd command and start the development server, all you need to do is type the PHP artisan serve command and press Enter; You can do it something:

cd blog
php artisan serve

Now, you can access your laravel application on browser using http://127.0.0.1:8000/ url.

#2: Using Official Installer

Laravel provides you a tool with the help of which you can install and use Laravel in Mac OS, let’s take a look at this tool as well.

The easiest way to install Laravel 11 on a macOS system is to use the Laravel installer command tool; In the following manner on terminal window or command line:

composer global require laravel/installer
laravel new example-app

This second way uses the official Laravel installer command to install Laravel 11 on Mac OS, which you type in a terminal window or command line and press enter to install Composer globally and install Laravel on your system.

Conclusion

We hope you found this guide helpful in installing Laravel 11 on macos system. If you still have any doubt then you can ask by emailing us at [email protected].

Recommended Laravel Tutorials

AuthorDevendra Dode

Greetings, I'm Devendra Dode, a full-stack developer, entrepreneur, and the proud owner of Tutsmake.com. My passion lies in crafting informative tutorials and offering valuable tips to assist fellow developers on their coding journey. Within my content, I cover a spectrum of technologies, including PHP, Python, JavaScript, jQuery, Laravel, Livewire, CodeIgniter, Node.js, Express.js, Vue.js, Angular.js, React.js, MySQL, MongoDB, REST APIs, Windows, XAMPP, Linux, Ubuntu, Amazon AWS, Composer, SEO, WordPress, SSL, and Bootstrap. Whether you're starting out or looking for advanced examples, I provide step-by-step guides and practical demonstrations to make your learning experience seamless. Let's explore the diverse realms of coding together.

Leave a Reply

Your email address will not be published. Required fields are marked *