Laravel.io
THEME:
"Revive" feedback form for registration and authorization



TEXT:
Hello everyone, dear forum users !!!
I really want to contact you with the following problem:

Relatively recently, I began to study WEB-programming (approximately from August 2018), in the process of which I accidentally found on some site "beonmax.com/ru/" paid courses on WEB-programming from a certain "expert" Sergey Nikonov.
Here you can go into the details of what these courses are like (creating the Kinomonstre project (some kind of kinopoisk.ru site), first in the classical form (without using frameworks and other aids), then using the Bootstrap framework, then he creates the MySQL database, connects his project to it ......., etc ...).
Finally, the author comes to "revitalizing" his site with the help of the PHP framework "CodeIgniter"! I listened to him attentively, listened (repeating everything after him, naturally) ... ONCE, everything that happened to him did not work out, TWO did not work, and I became interested in what was happening and found out that this PHP framework, it turns out stupid. They advised me, in general, "Laravel".

On the video hosting site "Youtube.com" I found video tutorials on "laravel" (link: "https://www.youtube.com/watch?v=oZGOnN7 ... WHE-KCoNnE") from a certain next expert (here I write this word without quotes , as the latter did not disappoint me yet).
I applied his methodology to my “raw” project and this is what I did:



Contents of the file "web.php":
[code]
<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

/* Route::get('/', function () {
    return view('welcome');
}); */

Route::get('main_page.blade.php', 'IndexController@main_page')->name('main_page');

Route::get('films.blade.php', 'IndexController@films')->name('filmsShow');
Route::get('film/{id}', 'IndexController@film')->name('filmShow');

Route::get('serials.blade.php', 'IndexController@serials')->name('serialsShow');
Route::get('serial/{id}', 'IndexController@serial')->name('serialShow');

Route::get('films_rating.blade.php', 'IndexController@films_rating')->name('films_rating');
Route::get('serials_rating.blade.php', 'IndexController@serials_rating')->name('serials_rating');

Route::get('news.blade.php', 'IndexController@news')->name('news');
Route::get('news/{id}', 'IndexController@information')->name('informationShow');

Route::get('contacts.blade.php', 'IndexController@contacts')->name('contacts');
Auth::routes();

Route::get('/home', 'HomeController@index')->name('home');
[/code]



Contents of the file "IndexController.php":
[code]
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request; 

use App\Movie;

use App\Information;

class IndexController extends Controller
{
	
	
	
	public function main_page() {
			
		$movies = Movie::all(); 
		
		$news = Information::all();
		
		return view('main_page')->with(['movies' => $movies, 'news' => $news]);
		
	}
	
	
	
	public function films() {
		
		$movies = Movie::all();
		
		$news = Information::all();
		
		return view('films-content')->with(['movies' => $movies, 'news' => $news]);
		
	}
	
	public function film($id) {
		
		$movies = Movie::all();
		
		$movie = Movie::all()->where('id', $id)->first();
		
		$news = Information::all();

		return view('film-content')->with(['movies' => $movies, 'movie' => $movie, 'news' => $news]);
		
	}
	
	
	
	public function serials() {
		
		$movies = Movie::all();
		
		$news = Information::all();
		
		return view('serials-content')->with(['movies' => $movies, 'news' => $news]);
		
	}
	
	public function serial($id) {
		
		$movies = Movie::all();
		
		$movie = Movie::all()->where('id', $id)->first();
		
		$news = Information::all();

		return view('serial-content')->with(['movies' => $movies, 'movie' => $movie, 'news' => $news]);
		
	}
	
	
	
	public function films_rating() {
		
		$movies = Movie::all();
		
		$news = Information::all();
		
		return view('films_rating-content')->with(['movies' => $movies, 'news' => $news]);
		
	}
	
	public function serials_rating() {
		
		$movies = Movie::all();
		
		$news = Information::all();
		
		return view('serials_rating-content')->with(['movies' => $movies, 'news' => $news]);
		
	}
	
	
	
	public function news() {
		
		$movies = Movie::all();
		
		$news = Information::all();
		
		return view('news-content')->with(['movies' => $movies, 'news' => $news]);
		
	}
	
	public function information($id) {
		
		$movies = Movie::all();
		
		$news = Information::all();
		
		$information = Information::all()->where('id', $id)->first();
		
		return view('information-content')->with(['movies' => $movies, 'news' => $news, 'information' => $information]);
		
	}
	
	
	
	public function contacts() {
		
		$movies = Movie::all();
		
		$news = Information::all();
		
		return view('contacts-content')->with(['movies' => $movies, 'news' => $news]);
		
	}
	
} 
[/code]



Contents of the file "index.blade.php" (the page INTO WHICH THE PARTS "HEADER", "LATERAL PANEL" AND "FOOTER" of my educational project WERE CARRIED OUT) (I added the line "{!! csrf_field () !!}"):
[code]
<!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->

	@yield('title')
	
	<link rel="shortcut icon" href=" {{ asset('img/favicon.ico') }} ">

    <!-- Bootstrap -->
    <link rel="stylesheet" href=" {{ asset('css/bootstrap.min.css') }} ">
	<link rel="stylesheet" href=" {{ asset('css/style.css') }} ">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
  </head>
  <body>
    
	<div class="container-fluid">
		
		<div class="row">
		
			<nav role="navigation" class="navbar navbar-inverse">
				
				<div class="container">
				
					<div class="navbar-header header">
					
						<div class="container">
						
							<div class="row">
							
								<div class="col-lg-12">
									<h1><a href=" {{ route('main_page') }} " target="_blank">KinoMonster</a></h1>
									<p>Cinema is our passion!</p>
								</div>
							
							</div>
						
						</div>
					
						<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbarCollapse">
						
							<span class="sr-only">Toggle navigation</span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
							<span class="icon-bar"></span>
						
						</button>
					
					</div>
					
					<div class="collapse navbar-collapse navbar-right" id="navbarCollapse">
					
						<ul class="nav nav-pills">

							@yield('header')
						
						</ul>
						
					</div>	
					
				</div>
			
			</nav>
		
		</div>
	
	</div>
	
	@yield('films')
	
	<div class="wrapper">
	
		<div class="container">
		
			<div class="row">
				
				<div class="col-lg-9 col-lg-push-3">
					
					<form action="#" role="search" class="visible-xs">
						<div class="form-group">
							<div class="input-group">
								<input type="search" class="form-control input-lg" placeholder="Your request">
								<div class="input-group-btn">
									<button type="submit" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-search"></i></button>
								</div>
							</div>
						</div>
					</form>
					
				@yield('content')				
					
				</div>
				
				<div class="col-lg-3 col-lg-pull-9">
					
					<div class="panel panel-info hidden-xs">
						
						<div class="panel-heading">
							<div class="sidebar-header">Search</div>
						</div>
						
						<div class="panel-body">
							<form action="#" role="search">
								<div class="form-group">
									<div class="input-group">
										<input type="search" class="form-control input-lg" placeholder="Your request">
										<div class="input-group-btn">
											<button type="submit" class="btn btn-default btn-lg"><i class="glyphicon glyphicon-search"></i></button>
										</div>
									</div>
								</div>
							</form>
						</div>
						
					</div>
					
					<div class="panel panel-info">
						
						<div class="panel-heading">
							<div class="sidebar-header">Login</div>
						</div>
						
						<div class="panel-body">
							<form action="/www/kinomonster.laravel/public/login" target="_blank" role="form" method="post">
							{!! csrf_field() !!}
							
								<div class="form-group">
										<input type="text" class="form-control input-lg" placeholder="Login" name="username">
								</div>
								<div class="form-group">
									<input type="password" class="form-control input-lg" placeholder="Password" name="password">
								</div>
								<button type="submit" class="btn btn-warning pull-right">Login</button>
							</form>
						</div>
						
					</div>					
					
					<div class="panel panel-info">					
						
						<div class="panel-heading">
							<div class="sidebar-header">News</div>
						</div>
						
						<div class="panel-body">
							
							@if(!empty($news))	
								
									@foreach($news as $new)   
								
										<p> <a href=" {{ route('informationShow',['id'=>$new->id]) }} " target="_blank"> {{ $new->title }} </a> </p>
							
									@endforeach
							
							@endif						
						
						</div>
					
					</div>							
					
					<div class="panel panel-info">
						
						<div class="panel-heading">
							<div class="sidebar-header">Films-rating</div>
						</div>
						
						<div class="panel-body">
							
							<ul class="list-group">					
	
								@if(!empty($movies))	
	
									@foreach($movies as $movie)                

										@if($movie->category_id == 1)                
                                
											<li class="list-group-item list-group-warning">
												<span class="badge"> {{ $movie->rating }} </span>
												<a href=" {{ route('filmShow',['id'=>$movie->id]) }} " target="_blank"> {{ $movie->name }} </a>
											</li>
                                        
										@endif
                                    
									@endforeach
	
								@endif	
							
							</ul>
							
						</div>
						
					</div>
					
					<div class="panel panel-info">
						
						<div class="panel-heading">
							<div class="sidebar-header">Serials-rating</div>
						</div>
						
						<div class="panel-body">
							
							<ul class="list-group">
	
								@if(!empty($movies))	
	
									@foreach($movies as $movie)                

										@if($movie->category_id == 2)                
                                
											<li class="list-group-item list-group-warning">
												<span class="badge"> {{ $movie->rating }} </span>
												<a href=" {{ route('filmShow',['id'=>$movie->id]) }} " target="_blank"> {{ $movie->name }} </a>
											</li>
                                        
										@endif
                                    
									@endforeach
	
								@endif	
							
							</ul>
							
						</div>
					
					</div>					
					
				</div>
				
			</div>
				
		</div>
	
		<div class="clear"></div>
	
	</div>
	
	<footer>
	
		<div class="container">
			<p class="text-center"> <a href="http://ru.wh-db.com">WH-DB.COM</a> </p>
		</div>
	
	</footer>

    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="assets/js/bootstrap.min.js"></script>
  </body>
</html>
[/code]



Contents of the file "main_page.blade.php" (MAIN PAGE of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title>Kinomonster Bootstrap</title>

@endsection



@section('header')

	<li class="active"> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection



@section('content')

	<h2>New films</h2>
	<hr>                 

	<div class="row">

		@foreach($movies as $movie)
		
			@if($movie->category_id == 1)		
		
				<div class="films_block col-lg-3 col-md-3 col-sm-3 col-xs-6">
					<a href=" {{ route('filmShow',['id'=>$movie->id]) }} " target="_blank"> <img src=" {{ $movie->poster }} " alt=" {{ $movie->name }} "> </a>	
					<div class="film_label"> {{ $movie->name }} </div>
				</div>

			@endif		
		
		@endforeach
					
	</div>                                               
	
	

	<div class="margin-8"></div>						 


					
	<h2>New serials</h2>
	<hr>                  
					
	<div class="row">
					
		@foreach($movies as $movie)
		
			@if($movie->category_id == 2)		
		
				<div class="films_block col-lg-3 col-md-3 col-sm-3 col-xs-6">
					<a href=" {{ route('serialShow',['id'=>$movie->id]) }} " target="_blank"> <img src=" {{ $movie->poster }} " alt=" {{ $movie->name }} "> </a>	
					<div class="film_label"> {{ $movie->name }} </div>
				</div>

			@endif		
		
		@endforeach
						
	</div>											   
					
@endsection
[/code]



Contents of the file "films-content.blade.php" (page WITH MOVIES of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title>Films</title>

@endsection



@section('header')

	<li> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li class="active"> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection



@section('content')
		
	<h1>Films</h1>
	<hr>
					
	@foreach($movies as $movie)

		@if($movie->category_id == 1)
					
			<div class="row">
				<div class="well clearfix">
					<div class="col-lg-3 col-md-2 text-center">
						<img class="img-thumbnail" src=" {{ $movie->poster }} " alt=" {{ $movie->name }} ">
						<p> {{ $movie->name }} </p>
					</div>
					<div class="col-lg-9 col-md-10">
						<p> {{ $movie->decsription }} </p>
					</div>
					<div class="col-lg-12">
						<a href=" {{ route('filmShow',['id'=>$movie->id]) }} " target="_blank" class="btn btn-lg btn-warning pull-right">More</a>
					</div>
				</div>
			</div>
		
		@endif
	
	@endforeach          
	
@endsection
[/code]



Contents of the file "film-content.blade.php" (page ONE OF FILMS of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title> {{ $movie->name }} </title>

@endsection



@section('header')

	<li> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li class="active"> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection


 
@section('content')

	<div class="row">

			<h1> {{ $movie->name }} </h1>
			<hr>
					
			<div class="embed-responsive embed-responsive-16by9">	
				<iframe class="embed-responsive-item" src=" {{ $movie->player_code }} " frameborder="0" allowfullscreen></iframe>
			</div>

			<div class="well info-block text-center">
				Year: <span class="badge"> {{ $movie->year }} </span>
				Rating: <span class="badge"> {{ $movie->rating }} </span>
				Producer(-s): <span class="badge"> {{ $movie->producer }} </span>
			</div>
					
			<div class="margin-8"></div>
					
			<h2>Film description "{{ $movie->name }}" </h2>
			<hr>
					
			<div class="well">
				<p> {{ $movie->description }} </p>			
			</div>
					
			<div class="margin-8"></div>
					
			<a href="#"><h3>How to make a film "{{ $movie->name }}" </h3></a>
			<hr>

			<p>
						
				<p>Hoyte Van Hoytem was hired as an operator, as Wally Pfister was busy working on his directorial debut, "Excellence".</p>
						
				<p>"Interstellar" filmed in combination anamorphic 35 mm film and IMAX format.</p>
						
				<p>In January 2013, Christopher Nolan began negotiations with Paramount and Warner Bros. to take part in the project as a director. In March, his participation was approved. The filming took place in the last quarter of 2013 in Alberta, Canada, in southern Iceland, on the Snayfellsjökull glacier and in the village of Kirkyubayarkleustur, as well as in Los Angeles.</p>
						
				<p>December 14, 2013 was released the first teaser for the film.</p>
						
				<p>May 17, 2014 released the official trailer for the film.</p>
						
				<p>July 30, 2014 released the second official trailer for the film. Exclusive viewing was available exclusively on the official website of the film after entering the secret combination of numbers, which had to be unraveled from the constellation in the starry sky. A day later, the video became available on YouTube.</p>
						
			</p>

			<a href="#" class="btn btn-warning pull-right">to read</a>
					
			<div class="margin-8"></div>
					
			<h2>Movie reviews "{{ $movie->name }}" </h2>
			<hr>
					
			<div class="panel panel-info">
				<div class="panel-heading"><i class="glyphicon glyphicon-user"></i><span>Sergey</span></div>
				<div class="panel-body">Great movie, 3 hours flew by.</div>
			</div>
					
			<div class="panel panel-info">
				<div class="panel-heading"><i class="glyphicon glyphicon-user"></i><span>Dmitriy</span></div>
				<div class="panel-body">After the movie Start, I was looking forward to more work from Christopher Nolan. Interstellar impressed me</div>
			</div>
					
			<div class="panel panel-info">
				<div class="panel-heading"><i class="glyphicon glyphicon-user"></i><span>Igor</span></div>
				<div class="panel-body">Very good!!))):-P</div>
			</div>
					
			<form action="#">
				<div class="form-group">
					<input type="text" placeholder="Your name" class="form-control input-lg">
				</div>
				<div class="form-group">
					<textarea class="form-control"></textarea>
				</div>
				<button class="btn btn-lg btn-warning pull-right">To send</button>
			</form>  

	</div>                                           
	
@endsection
[/code]



Contents of the file "serials-content.blade.php" (page WITH SERIALS of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title>Serials</title>

@endsection



@section('header')

	<li> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li class="active"> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection


 
@section('content')
		
	<h1>Serials</h1>
	<hr>
					
	@foreach($movies as $movie)

		@if($movie->category_id == 2)
					
			<div class="row">
				<div class="well clearfix">
					<div class="col-lg-3 col-md-2 text-center">
						<img class="img-thumbnail" src=" {{ $movie->poster }} " alt=" {{ $movie->name }} ">
						<p> {{ $movie->name }} </p>
					</div>
					<div class="col-lg-9 col-md-10">
						<p> {{ $movie->decsription }} </p>
					</div>
					<div class="col-lg-12">
						<a href=" {{ route('serialShow',['id'=>$movie->id]) }} " target="_blank" class="btn btn-lg btn-warning pull-right">More</a>
					</div>
				</div>
			</div>
		
		@endif
	
	@endforeach                                          
	
@endsection
[/code]



Contents of the file "serial-content.blade.php" (page WITH ONE OF THE SERIALS of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title> {{ $movie->name }} </title>

@endsection



@section('header')

	<li> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li class="active"> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection


 
@section('content')

	<div class="row">
		
		@if($movie->category_id == 2)

			<h1> {{ $movie->name }} </h1>
			<hr>
					
			<div class="embed-responsive embed-responsive-16by9">	
				<iframe class="embed-responsive-item" src=" {{ $movie->player_code }} " frameborder="0" allowfullscreen></iframe>
			</div>

			<div class="well info-block text-center">
				Year: <span class="badge"> {{ $movie->year }} </span>
				Rating: <span class="badge"> {{ $movie->rating }} </span>
				Producer(-s): <span class="badge"> {{ $movie->producer }} </span>
			</div>
					
			<div class="margin-8"></div>
					
			<h2>Serial description "{{ $movie->name }}" </h2>
			<hr>
					
			<div class="well">
				<p> {{ $movie->description }} </p>			
			</div>
					
			<div class="margin-8"></div>
					
			<a href="#"><h3>How to make a serial "{{ $movie->name }}" </h3></a>
			<hr>

			<p>
						
				<p>Hoyte Van Hoytem was hired as an operator, as Wally Pfister was busy working on his directorial debut, "Excellence".</p>
						
				<p>"Interstellar" filmed in combination anamorphic 35 mm film and IMAX format.</p>
						
				<p>In January 2013, Christopher Nolan began negotiations with Paramount and Warner Bros. to take part in the project as a director. In March, his participation was approved. The filming took place in the last quarter of 2013 in Alberta, Canada, in southern Iceland, on the Snayfellsjökull glacier and in the village of Kirkyubayarkleustur, as well as in Los Angeles.</p>
						
				<p>December 14, 2013 was released the first teaser for the film.</p>
						
				<p>May 17, 2014 released the official trailer for the film.</p>
						
				<p>July 30, 2014 released the second official trailer for the film. Exclusive viewing was available exclusively on the official website of the film after entering the secret combination of numbers, which had to be unraveled from the constellation in the starry sky. A day later, the video became available on YouTube.</p>
						
			</p>

			<a href="#" class="btn btn-warning pull-right">to read</a>
					
			<div class="margin-8"></div>
					
			<h2>Serial reviews "{{ $movie->name }}" </h2>
			<hr>
					
			<div class="panel panel-info">
				<div class="panel-heading"><i class="glyphicon glyphicon-user"></i><span>Sergey</span></div>
				<div class="panel-body">Great movie, 3 hours flew by.</div>
			</div>
					
			<div class="panel panel-info">
				<div class="panel-heading"><i class="glyphicon glyphicon-user"></i><span>Dmitriy</span></div>
				<div class="panel-body">After the movie Start, I was looking forward to more work from Christopher Nolan. Interstellar impressed me</div>
			</div>
					
			<div class="panel panel-info">
				<div class="panel-heading"><i class="glyphicon glyphicon-user"></i><span>Igor</span></div>
				<div class="panel-body">Very good!!))):-P</div>
			</div>
					
			<form action="#">
				<div class="form-group">
					<input type="text" placeholder="Your name" class="form-control input-lg">
				</div>
				<div class="form-group">
					<textarea class="form-control"></textarea>
				</div>
				<button class="btn btn-lg btn-warning pull-right">To send</button>
			</form> 

		@endif 

	</div>                                           
	
@endsection
[/code]



Contents of the file "films_rating-content.blade.php" (FILMS RATINGS page of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title>Films-rating</title>

@endsection



@section('header')

	<li> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li class="active"> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection


 
@section('content')

	<h1>Films-rating</h1>
	<hr>
					
	<table class="table table-striped">
						
		<thead>
		
			<tr>
				<th></th>
				<th>The film</th>
				<th class="text-center">Year</th>
				<th class="text-center">Rating</th>
			</tr>
		
		</thead>
	
		<tbody>	

			@foreach($movies as $movie)

				@if($movie->category_id == 1)
		
					<tr>
						<td class="col-lg-1 col-md-1 col-xs-2"><img class="img-responsive img-thumbnail" src=" {{ $movie->poster }} " alt=" {{ $movie->name }} "></td>
						<td class="vert-align"><a href=" {{ route('filmShow',['id'=>$movie->id]) }} " target="_blank"> {{ $movie->name }} </a></td>
						<td class="text-center vert-align"> {{ $movie->year }} </td>
						<td class="text-center vert-align"><span class="badge"> {{ $movie->rating }} </span></td>
					</tr>
					
				@endif
				
			@endforeach
							
		</tbody>
						
	</table>
	
@endsection
[/code]



Contents of the file "serials_rating-content.blade.php" (page with SERIALS RATINGS of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title>Serials-rating</title>

@endsection



@section('header')

	<li> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li class="active"> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection


 
@section('content')

	<h1>Serials-rating</h1>
	<hr>
					
	<table class="table table-striped">
						
		<thead>
		
			<tr>
				<th></th>
				<th>The serial</th>
				<th class="text-center">Year</th>
				<th class="text-center">Rating</th>
			</tr>
		
		</thead>
	
		<tbody>	

			@foreach($movies as $movie)

				@if($movie->category_id == 2)
		
					<tr>
						<td class="col-lg-1 col-md-1 col-xs-2"><img class="img-responsive img-thumbnail" src=" {{ $movie->poster }} " alt=" {{ $movie->name }} "></td>
						<td class="vert-align"><a href=" {{ route('filmShow',['id'=>$movie->id]) }} " target="_blank"> {{ $movie->name }} </a></td>
						<td class="text-center vert-align"> {{ $movie->year }} </td>
						<td class="text-center vert-align"><span class="badge"> {{ $movie->rating }} </span></td>
					</tr>
					
				@endif
				
			@endforeach
							
		</tbody>
						
	</table>
	
@endsection
[/code]



Contents of the file "news-content.blade.php" (NEWS page of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title>News</title>

@endsection



@section('header')

	<li> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li class="active"> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection


 
@section('content')

	<h1>News</h1>
	<hr>
					
	@foreach($news as $new)
	
		<a href=" {{ route('informationShow',['id'=>$new->id]) }} " target="_blank"> <h3> {{ $new->title }} </h3> </a>
		<hr>
					
		<p> {{ $new->slug }} </p>
					
		<a href=" {{ route('informationShow',['id'=>$new->id]) }} " target="_blank" class="btn btn-warning pull-right">to read</a>
		
		<div class="margin-8"></div>
	
	@endforeach
		
@endsection
[/code]



Contents of the file "information-content.blade.php" (page WITH ONE OF THE NEWS of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title> {{ $information->title }} </title>

@endsection



@section('header')

	<li> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li class="active"> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection


 
@section('content')

	<h1> {{ $information->title }} </h1>
	<hr>
					
	<p> {{ $information->text }} </p>
		
@endsection
[/code]



Contents of the file "contacts-content.blade.php" (page FOR COMMUNICATION WITH THE ADMINISTRATION of my educational project):
[code]
@extends('layouts.index')



@section('title')

	<title>Contacts</title>

@endsection



@section('header')

	<li> <a href=" {{ route('main_page') }} " target="_blank">Main</a> </li>
	<li> <a href=" {{ route('filmsShow') }} " target="_blank">Films</a> </li>
	<li> <a href=" {{ route('serialsShow') }} " target="_blank">Serials</a> </li>
	<li> <a href=" {{ route('films_rating') }} " target="_blank">Films-rating</a> </li>
	<li> <a href=" {{ route('serials_rating') }} " target="_blank">Serials-rating</a> </li>
	<li> <a href=" {{ route('news') }} " target="_blank">News</a> </li>
	<li class="active"> <a href=" {{ route('contacts') }} " target="_blank">Contacts</a> </li>

@endsection


 
@section('content')

	<h1>Contacts</h1>
	<hr>
					
	<p>Save you review about "Kinomonster" portal</p>
		<form action="#">
			<div class="form-group">
				<input type="text" placeholder="Your name" class="form-control input-lg">
			</div>
			<div class="form-group">
				<input type="email" placeholder="Your email-adress" class="form-control input-lg">
			</div>
			<div class="form-group">
				<textarea class="form-control"></textarea>
			</div>
			<button class="btn btn-lg btn-warning pull-right">To send</button>
		</form>
		
@endsection
[/code]



Documents created using cmd commands - "php artisan make: auth":



Contents of the file "HomeController.php" (here I added the lines "use App\User;" and "$users = User::all();"):
[code]
<?php

namespace App\Http\Controllers;

use Illuminate\Http\Request;

use App\User;

class HomeController extends Controller
{
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('auth');
    }

    /**
     * Show the application dashboard.
     *
     * @return \Illuminate\Contracts\Support\Renderable
     */
    public function index()
    {
		
		$users = User::all();
		
        return view('home')->with(['users' => $users]);
		
    }
}
[/code]



Contents of the file "home.blade.php":
[code]
@extends('layouts.app')



@section('login')

	<div class="panel panel-info">
						
		<div class="panel-heading">
			<div class="sidebar-header">Login</div>
		</div>
						
		<div class="panel-body">
			<form action="#" role="form">
				<div class="form-group">
					<input type="text" class="form-control input-lg" placeholder="Login">
				</div>
				<div class="form-group">
					<input type="password" class="form-control input-lg" placeholder="Password">
				</div>
				<button type="submit" class="btn btn-warning pull-right">Login</button>
			</form>
		</div>
						
	</div>

@endsection



@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">Dashboard</div>

                <div class="card-body">
                    @if (session('status'))
                        <div class="alert alert-success" role="alert">
                            {{ session('status') }}
                        </div>
                    @endif

                    You are logged in!
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
[/code]



Contents of the file "login.blade.php":
[code]
@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">{{ __('Login') }}</div>

                <div class="card-body">
                    <form method="POST" action="{{ route('login') }}">
                        @csrf

                        <div class="form-group row">
                            <label for="email" class="col-md-4 col-form-label text-md-right">{{ __('Email-adress:') }}</label>

                            <div class="col-md-6">
                                <input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}" required autofocus>

                                @if ($errors->has('email'))
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $errors->first('email') }}</strong>
                                    </span>
                                @endif
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password:') }}</label>

                            <div class="col-md-6">
                                <input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required>

                                @if ($errors->has('password'))
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $errors->first('password') }}</strong>
                                    </span>
                                @endif
                            </div>
                        </div>

                        <div class="form-group row">
                            <div class="col-md-6 offset-md-4">
                                <div class="form-check">
                                    <input class="form-check-input" type="checkbox" name="remember" id="remember" {{ old('remember') ? 'checked' : '' }}>

                                    <label class="form-check-label" for="remember">
                                        {{ __('Remember me') }}
                                    </label>
                                </div>
                            </div>
                        </div>

                        <div class="form-group row mb-0">
                            <div class="col-md-8 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    {{ __('Login') }}
                                </button>

                                @if (Route::has('password.request'))
                                    <a class="btn btn-link" href="{{ route('password.request') }}">
                                        {{ __('Forgot your password?') }}
                                    </a>
                                @endif
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
[/code]



Contents of the file "register.blade.php":
[code]
@extends('layouts.app')

@section('content')
<div class="container">
    <div class="row justify-content-center">
        <div class="col-md-8">
            <div class="card">
                <div class="card-header">{{ __('Register') }}</div>

                <div class="card-body">
                    <form method="POST" action="{{ route('register') }}">
                        @csrf

                        <div class="form-group row">
                            <label for="name" class="col-md-4 col-form-label text-md-right">{{ __('Name:') }}</label>

                            <div class="col-md-6">
                                <input id="name" type="text" class="form-control{{ $errors->has('name') ? ' is-invalid' : '' }}" name="name" value="{{ old('name') }}" required autofocus>

                                @if ($errors->has('name'))
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $errors->first('name') }}</strong>
                                    </span>
                                @endif
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="email" class="col-md-4 col-form-label text-md-right">{{ __('Email-adress:') }}</label>

                            <div class="col-md-6">
                                <input id="email" type="email" class="form-control{{ $errors->has('email') ? ' is-invalid' : '' }}" name="email" value="{{ old('email') }}" required>

                                @if ($errors->has('email'))
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $errors->first('email') }}</strong>
                                    </span>
                                @endif
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password" class="col-md-4 col-form-label text-md-right">{{ __('Password:') }}</label>

                            <div class="col-md-6">
                                <input id="password" type="password" class="form-control{{ $errors->has('password') ? ' is-invalid' : '' }}" name="password" required>

                                @if ($errors->has('password'))
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $errors->first('password') }}</strong>
                                    </span>
                                @endif
                            </div>
                        </div>

                        <div class="form-group row">
                            <label for="password-confirm" class="col-md-4 col-form-label text-md-right">{{ __('Confirm password:') }}</label>

                            <div class="col-md-6">
                                <input id="password-confirm" type="password" class="form-control" name="password_confirmation" required>
                            </div>
                        </div>

                        <div class="form-group row mb-0">
                            <div class="col-md-6 offset-md-4">
                                <button type="submit" class="btn btn-primary">
                                    {{ __('Register') }}
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
@endsection
[/code]



Contents of the file "app.blade.php":
[code]
<!DOCTYPE html>
<html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- CSRF Token -->
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>{{ config('app.name', 'Laravel') }}</title>

    <!-- Scripts -->
    <script src="{{ asset('js/app.js') }}" defer></script>

    <!-- Fonts -->
    <link rel="dns-prefetch" href="//fonts.gstatic.com">
    <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet" type="text/css">

    <!-- Styles -->
    <link href="{{ asset('css/app.css') }}" rel="stylesheet">
</head>
<body>
    <div id="app">
        <nav class="navbar navbar-expand-md navbar-light navbar-laravel">
            <div class="container">
                <a class="navbar-brand" href="{{ url('/') }}">
                    {{ config('app.name', 'Laravel') }}
                </a>
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="{{ __('Toggle navigation') }}">
                    <span class="navbar-toggler-icon"></span>
                </button>

                <div class="collapse navbar-collapse" id="navbarSupportedContent">
                    <!-- Left Side Of Navbar -->
                    <ul class="navbar-nav mr-auto">

                    </ul>

                    <!-- Right Side Of Navbar -->
                    <ul class="navbar-nav ml-auto">
                        <!-- Authentication Links -->
                        @guest
                            <li class="nav-item">
                                <a class="nav-link" href="{{ route('login') }}">{{ __('Login') }}</a>
                            </li>
                            @if (Route::has('register'))
                                <li class="nav-item">
                                    <a class="nav-link" href="{{ route('register') }}">{{ __('Register') }}</a>
                                </li>
                            @endif
                        @else
                            <li class="nav-item dropdown">
                                <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
                                    {{ Auth::user()->name }} <span class="caret"></span>
                                </a>

                                <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
                                    <a class="dropdown-item" href="{{ route('logout') }}"
                                       onclick="event.preventDefault();
                                                     document.getElementById('logout-form').submit();">
                                        {{ __('Logout') }}
                                    </a>

                                    <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
                                        @csrf
                                    </form>
                                </div>
                            </li>
                        @endguest
                    </ul>
                </div>
            </div>
        </nav>

        <main class="py-4">
            @yield('content')
        </main>
    </div>
</body>
</html>
[/code]



Contents of the file "User.php":
[code]
<?php

namespace App;

use Illuminate\Notifications\Notifiable;
use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    use Notifiable;

    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'name', 'email', 'password',
    ];

    /**
     * The attributes that should be hidden for arrays.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];
}
[/code]



Help me, please, deal with authorization! For this framework, there is a special cmd-command "php artisan make: auth", which makes a number of changes to the Project I am working on (in particular, it creates a separate page for authorization and registration). Maybe this is for the best, of course ... But the fact is that I already have a fragment of the code for authorization on my left panel. I could somehow revive my authorization? If so, how? ... Did I make a fatal mistake by typing this cmd command?

Please note that all pasted data is publicly available.