Laravel File Paths

- 1 answer

Ad

I am using laravel 4.2. I am following this basic tutorial on how to build Laravel Commands. I want to know where laravel is defining or registering the file paths to. For e.g.

use Illuminate\Console\Command;

is actually refering to the path below

vendor\laravel\framework\src\Illuminate\Console\Command.php

I am new to laravel, If you could point me to the right direction it would greatly help me.

Ad

Answer

Ad

So I studied how it locates the file it was using. Then I found out it is using a namespace. The book called CODE BRIGHT by Dayle Rees greatly helped me in understanding how namespacing works. You can scroll down under the section called THE PRIMERS where Dayle describes how it functions. It is easy to understand! Give it a try.

Ad
source: stackoverflow.com
Ad