Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть #1 Laravel 6 Basics | Routing (I) | Basic Routing | Redirect Routes | View Routes

  • Stack Developers
  • 2019-11-16
  • 2216
#1 Laravel 6 Basics | Routing (I) | Basic Routing | Redirect Routes | View Routes
laravel 6 basicslaravel 6 tutoriallaravel 6 step to steplaravel 6 routinglaravel basic routinglaravel redirect routeslaravel view routeslaravel routeslearn laravel 6laravel 6 basic featureslaravel 6 basiclaravel 6 with ecomlaravel 6 examples
  • ok logo

Скачать #1 Laravel 6 Basics | Routing (I) | Basic Routing | Redirect Routes | View Routes бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно #1 Laravel 6 Basics | Routing (I) | Basic Routing | Redirect Routes | View Routes или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку #1 Laravel 6 Basics | Routing (I) | Basic Routing | Redirect Routes | View Routes бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео #1 Laravel 6 Basics | Routing (I) | Basic Routing | Redirect Routes | View Routes

In Part-1 of Laravel 6 Basics, we will start learn about Routing in detail.

Routing is the very first step of Laravel for defining the URL's for your website.

We will install new Laravel 6 website and will try new routes in that along with E-com series.

Please watch below video for installing Laravel 6 :-
   • Install Laravel 6.0 in Windows from scratc...  

First of all, we will do Basic Routing that accepts URI (Uniform Resource Identifier) with Closure.

We have created many routes in our E-com Series using Controllers with Actions but never done Routes with Closure.

Closures are anonymous functions (function() {}), they can be assigned to and treated like any other variable.

In the above route, welcome is URI (Uniform Resource Identifier) that identifies the URL and we have used Closure function that returns 'Hello World' as shown in video.

Default Route Files
Web Routes :- We will keep web routes in web.php file located in routes folder.
API Routes :- We will keep API routes in api.php located in routes folder.

Available Router Methods
Route::get($uri, $callback);
Route::post($uri, $callback);
Route::put($uri, $callback);
Route::patch($uri, $callback);
Route::delete($uri, $callback);
Route::options($uri, $callback);

We have done GET and POST so far in E-com series but other routes are not so much common but we will try them as well in future videos here in Laravel 6 Basics.

Use patch when both GET/POST routes required like shown in video.

We can also use "any" that can pick any method like GET, POST and others also.

CSRF Protection
We require CSRF Protection for HTML forms pointing to POST, PUT, or DELETE routes.

Redirect Routes
If you are defining a route that redirects to another URI, you may use the Route::redirect method.

Below Route will redirect home route to welcome route.
Route::redirect('/home', '/welcome');

By default, Route::redirect returns a 302 status code.

We can customize the status code using the optional third parameter like 301 for permanent redirects.

We can also use the Route::permanentRedirect method to return a 301 status code.

View Routes
If route only needs to return a view then we can use the Route::view method.
The view method accepts a URI as its first argument and a view name as its second argument.

Route::view('/welcome', 'welcome');

In addition, we can also provide an array of data to pass to the view as an optional third argument.

In welcome.blade.php file, we can get name variable as {{ $name }} that will print home.

Join as premium to get E-commerce Website code in Laravel 6 / 7 / 8 :-
   / @stackdevelopers  

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]