Skip to main content

Laravel/PHP Workbook

Last updated: 31 Mar 2025

Laravel specific learnings


php.bat not found

solved by creating php.bat in D:\xaamp/php and add

@echo off
php %*

Layouts

you can make use of the x-app-layout approach by making a component file

Copyright © {{ date('Y') }} to add year in php

Routes

  • always check if your routes are not duplicated php artisan route:list
  • The middleware() method should be chained directly to the route definition get().

Back to log