Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

RogerManich's avatar

Is it normal deprecated message during new project in Laravel 12 (ubuntu)?

This week I made new fresh VM to develop. I install PHP 8.2 / composer/ nodejs etc. During the creation of new project via laravel new myproject I've seen some difference in the process. Starter kits are different. ok. But what I experienced is some deprecated message warnings. Maybe they can be ignored. I thing it is about symphony console. Any ideas? thank you

0 likes
2 replies
LaryAI's avatar
Level 58

When you create a new Laravel project and encounter deprecation warnings, it's often related to the underlying packages that Laravel depends on, such as Symfony components. These warnings are typically harmless in the short term but indicate that certain features or methods are planned to be removed in future versions.

Here's how you can address these warnings:

  1. Check PHP Version: Ensure that your PHP version is compatible with Laravel 12. Laravel 12 should be compatible with PHP 8.2, but always check the official Laravel documentation for the specific version requirements.

  2. Update Composer Packages: Run composer update in your project directory. This will update all your dependencies to the latest versions that are compatible with your current setup, which might resolve some deprecation warnings.

    composer update
    
  3. Review Deprecation Notices: Look at the specific deprecation messages. They usually indicate which part of the code or which package is causing the warning. This can help you identify if it's something you need to address immediately or if it's safe to ignore for now.

  4. Check Symfony Version: Since you mentioned Symfony console, check if there's a newer version of Symfony that addresses these deprecations. You can specify a newer version in your composer.json if it's compatible with Laravel.

  5. Ignore Temporarily: If the deprecation warnings are not causing any immediate issues, you can choose to ignore them temporarily. However, keep an eye on updates from Laravel and its dependencies to ensure future compatibility.

  6. Report Issues: If you believe the deprecation warnings are due to a bug or oversight in Laravel, consider reporting it on the Laravel GitHub repository or checking if it's already been reported.

Deprecation warnings are a normal part of software development, especially when using cutting-edge versions of frameworks and libraries. They serve as a heads-up for developers to prepare for future changes.

RogerManich's avatar
RogerManich
OP
Best Answer
Level 7

I installed a new fresh ubuntu 24.04.2 Then I installed those packages:

sudo apt update && sudo apt install zsh -y
sudo apt install curl -y
sudo apt install git -y
sudo apt install tmux -y
cd && git clone https://github.com/gpakosz/.tmux.git && ln -s -f .tmux/.tmux.conf && cp .tmux/.tmux.conf.local .
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
sudo apt update 
sudo apt install composer -y
sudo apt install nodejs -y
sudo apt install npm -y
sudo apt install software-properties-common
sudo add-apt-repository ppa:ondrej/php
sudo apt install php8.3-mysql php8.3-curl php8.3-xml php8.3-sqlite3 php8.3-intl php8.3-mbstring
php -v
sudo apt install nginx
systemctl enable nginx
systemctl start nginx
composer global require laravel/installer
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc

and I create .gitconfig (personal preferences. Not required at all)

[user]
        signingkey = XXXXXX
        email = [email protected]
        name = Jane Doe
[commit]
        gpgsign = true
[init]
        defaultBranch = main
[advice]
        addIgnoredFile = false

[alias]
        lg = log --oneline --decorate --color --graph
        lgc = log --oneline --decorate --color --graph --format=%C(yellow)%h%C(reset)\\ %C(cyan)%an%C(reset)\\ -\\ %s\\ (%cr)
        lga = log --all --decorate --oneline --graph
        lgm = log --merges --oneline --decorate --graph
        lgd = log --pretty=format:%C(yellow)%h%C(reset)\\ -\\ %C(cyan)%an%C(reset)\\ -\\ %s\\ %C(dim\\ white)(%ar)

and now it works fine. Maybe I made a mistake installing one package with the wrong version. I don't thing it is a ubuntu version issue

Please or to participate in this conversation.