How to save markdown using an editor and render it using Laravel
How to setup a Laravel Markdown editor and convert the markdown to HTML easy.
Ever wonder how some classes do not require a full namespace to be called in a blade view? i.e.
{{ Auth::id() }}
Instead of:
{{ \Illuminate\Support\Facades\Auth::id() }}
Laravel has a configuration file config/app.php
that maps class namespaces to an alias i.e.
// ...
/*
|--------------------------------------------------------------------------
| Class Aliases
|--------------------------------------------------------------------------
|
| This array of class aliases will be registered when this application
| is started. However, feel free to register as many as you wish as
| the aliases are "lazy" loaded so they don't hinder performance.
|
*/
'aliases' => [
'App' => Illuminate\Support\Facades\App::class,
'Arr' => Illuminate\Support\Arr::class,
'Artisan' => Illuminate\Support\Facades\Artisan::class,
'Auth' => Illuminate\Support\Facades\Auth::class,
// ...
],
How to setup a Laravel Markdown editor and convert the markdown to HTML easy.
Discover efficient techniques for updating multiple rows with unique values in Laravel. Explore step-by-step instructions and practical examples to streamline your database operations.
Breadcrumbs are a crucial navigation element in web applications, providing users with a clear path to follow within your site's hierarchy. By the end, you'll have an easy-to-use breadcrumb system that enhances your site's user experience.