//There are two ways to install laravel
//1-install laravel with Composer
composer create-project laravel/laravel example-app
// or
//2-install laravel with Laravel Installer
composer global require laravel/installer
laravel new example-app
// go to the project
cd example-app
# Via Laravel Installer
composer global require laravel/installer
laravel new blog
# Via Composer Create-Project
composer create-project --prefer-dist laravel/laravel blog
@env('local')
{{-- will only be rendered in the local environment --}}
<div class="space-y-2">
<x-login-link email="admin@spatie.be"/>
<x-login-link email="user@spatie.be"/>
</div>
@endenv
Laravel is a free, open-source PHP web framework, created by Taylor Otwell and intended for the development of web applications following the model–view–controller architectural pattern
* @throws IlluminateContractsContainerBindingResolutionException
* @throws IlluminateContractsContainerCircularDependencyException
*/
public function build($concrete)
{
// If the concrete type is actually a Closure, we will just execute it and
// hand back the results of the functions, which allows functions to be
// used as resolvers for more fine-tuned resolution of these objects.
if ($concrete instanceof Closure) {
return $concrete($this, $this->getLastParameterOverride());
}
try {
$reflector = new ReflectionClass($concrete);
} catch (ReflectionException $e) {
throw new BindingResolutionException("Target class [$concrete] does not exist.", 0, $e);
}
// If the type is not instantiable, the developer is attempting to resolve
// an abstract type such as an Interface or Abstract Class and there is
// no binding registered for the abstractions so we need to bail out.
if (! $reflector->isInstantiable()) {
return $this->notInstantiable($concrete);
}
$this->buildStack[] = $concrete;
$constructor = $reflector->getConstructor();
// If there are no constructors, that means there are no dependencies then