We are happy to provide authentication and application starter kits to help you get a head start on developing your new Laravel application. The routes, controllers, and views required to register and authenticate users for your application are automatically scaffolded into these kits.
Although they are optional, you are welcome to use these starter kits. Installing a fresh copy of Laravel will allow you to create your own application from scratch. Regardless, we have no doubt that you'll create something fantastic!
Can try this command for latest version....
composer create-project laravel/laravel example-app
Can try this command for specific version....
composer create-project laravel/laravel:^10.0 example-app
Even though Laravel does not impose any restrictions on the JavaScript or CSS pre-processors you employ, it does offer a fundamental starting point using Bootstrap, React, and/or Vue that will be useful for many applications. Both of these frontend packages are installed by Laravel by default using NPM.
composer require laravel/ui
// Generate basic scaffolding...
php artisan ui bootstrap
php artisan ui vue
php artisan ui react
// Generate login / registration scaffolding...
php artisan ui bootstrap --auth
php artisan ui vue --auth
php artisan ui react --auth
npm install
npm run dev
php artisan migrate
Next, you may navigate to your application's /login or /register URLs in your web browser. All of Breeze's routes are defined within the routes/auth.php file.
All of Laravel's authentication functionality, including as login, registration, password reset, email verification, and password confirmation, are implemented in a minimal, straightforward manner in Laravel Breeze.
composer require laravel/breeze --dev
php artisan breeze:install
php artisan migrate
npm install
npm run dev
php artisan breeze:install --dark
Next, you may navigate to your application's /login or /register URLs in your web browser. All of Breeze's routes are defined within the routes/auth.php file.
Complete PHPDocs, directly from the source
This package generates helper files that enable your IDE to provide accurate autocompletion. Generation is done based on the files in your project, so they are always up-to-date.
composer require --dev barryvdh/laravel-ide-helper
This package enables Laravel and PHP Debug Bar integration. To register the debugbar and bind it to the output, a ServiceProvider is included. Through Laravel, you may setup it and publish assets.
Require this package with composer. It is recommended to only require the package for development.
composer require barryvdh/laravel-debugbar --dev
Laravel uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider. The Debugbar will be enabled when APP_DEBUG is true.
A PHP image handling and processing library called Intervention Image is free and open source. GD Library and Imagick, the two most popular image processing libraries, are supported, and it offers a simpler and more expressive approach to generate, edit, and compose images.
composer require intervention/image
After you have installed Intervention Image, open your Laravel config file config/app.php and add the following lines. In the $providers array add the service providers for this package.
'providers' => [
Intervention\Image\ImageServiceProvider::class,
];
Add the facade of this package to the $aliases array.
'Image' => Intervention\Image\Facades\Image::class
php artisan vendor:publish --provider="Intervention\Image\ImageServiceProviderLaravelRecent"
Laravel Meta Manager is an SEO tool that you can use to enhance the SEO of a website or particular page by adding suggested meta tags to your application.
- Standard Meta Tags
- Facebook OpenGraph Meta Tags
- Twitter Card Meta Tags
- Dublin Core Meta Tags
- Link Tags
composer require davmixcool/laravel-meta-manager
'providers' => [
Davmixc
9EFF
ool\MetaManager\MetaServiceProvider::class,
];
php artisan vendor:publish --provider="Davmixcool\MetaManager\MetaServiceProvider"
Once the configuration is complete you can then add the below at the meta area of the page you want to include meta tags;
@include('meta::manager')
@include('meta::manager', [
'title' => 'My Example Title',
'description' => 'This is my example description',
'image' => 'Url to the image',
])
A PHP desktop/mobile user agent parser with support for Laravel, based on Mobile Detect with desktop support and additional functionality.
composer require jenssegers/agent
'providers' => [
Jenssegers\Agent\AgentServiceProvider::class,
];
'Agent' => Jenssegers\Agent\Facades\Agent::class,
use Jenssegers\Agent\Agent;
$agent = new Agent();
Through the Roles and Permission-based Access Control feature of Laravel Permissions, developers may provide users access control (ACL). Because of this, from the site's back end, one may change and grant users access.
composer require spatie/laravel-permission
'providers' => [
Spatie\Permission\PermissionServiceProvider::class,
];
php artisan vendor:publish --provider="Spatie\Permission\PermissionServiceProvider"
php artisan optimize:clear
# or
php artisan config:clear
php artisan migrate
Custom Sweetalert is a beautiful, responsive, customizable, accessibility (wai-aria) replacement for javascript popup boxes.
Notyf is a simple JavaScript library for toast notifications is called Notyf. It is lightweight (3KB), responsive, A11Y compliant, and independent. React, Angular, Aurelia, Vue, and Svelte integration is simple. You can also view On Github.
This section explains the base case using the minified bundle. See the quick recipes section for instructions to plug Notyf into Angular, React, Aurelia, Vue, or Svelte.
Add the css and js files to your main document:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.css">
<script src="https://cdn.jsdelivr.net/npm/notyf@3/notyf.min.js"></script>
// Create an instance of Notyf
var notyf = new Notyf();
// Display an error notification
notyf.error('You must fill out the form before moving forward');
// Display a success notification
notyf.success('Your changes have been successfully saved!');
Please Check Also
Viho Admin is a premium, fully featured, multipurpose Bootstrap admin template created with HTML5, CSS, and JQuery. It is integrated with the most recent jQuery plugins and contains a large variety of reusable UI components. Any form of web application, including a bespoke admin panel, backend, CMS, or CRM, can use it.