Skip to content

Commit 5a87745

Browse files
committed
Created login page, register page, user crud and all static pages
1 parent a0bef67 commit 5a87745

File tree

110 files changed

+17929
-113
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+17929
-113
lines changed

app/Http/Controllers/Auth/RegisterController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ public function __construct()
4949
protected function validator(array $data)
5050
{
5151
return Validator::make($data, [
52-
'name' => ['required', 'string', 'max:255'],
53-
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
52+
'name' => ['required', 'string', 'max:40'],
53+
'email' => ['required', 'string', 'email', 'max:100', 'unique:users'],
5454
'password' => ['required', 'string', 'min:8', 'confirmed'],
5555
]);
5656
}

app/Http/Controllers/HomeController.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
namespace App\Http\Controllers;
44

5+
use Illuminate\Http\Request;
6+
57
class HomeController extends Controller
68
{
79
/**
@@ -17,10 +19,10 @@ public function __construct()
1719
/**
1820
* Show the application dashboard.
1921
*
20-
* @return \Illuminate\View\View
22+
* @return \Illuminate\Contracts\Support\Renderable
2123
*/
2224
public function index()
2325
{
24-
return view('dashboard');
26+
return view('pages.dashboard');
2527
}
2628
}
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
<?php
2+
3+
namespace App\Http\Controllers;
4+
5+
use Illuminate\Http\Request;
6+
7+
class PageController extends Controller
8+
{
9+
/**
10+
* Display a listing of the resource.
11+
*
12+
* @return \Illuminate\Http\Response
13+
*/
14+
public function index($page)
15+
{
16+
if (view()->exists("pages.{$page}")) {
17+
return view("pages.{$page}");
18+
}
19+
return abort(404);
20+
}
21+
22+
/**
23+
* Show the form for creating a new resource.
24+
*
25+
* @return \Illuminate\Http\Response
26+
*/
27+
public function create()
28+
{
29+
//
30+
}
31+
32+
/**
33+
* Store a newly created resource in storage.
34+
*
35+
* @param \Illuminate\Http\Request $request
36+
* @return \Illuminate\Http\Response
37+
*/
38+
public function store(Request $request)
39+
{
40+
//
41+
}
42+
43+
/**
44+
* Display the specified resource.
45+
*
46+
* @param int $id
47+
* @return \Illuminate\Http\Response
48+
*/
49+
public function show($id)
50+
{
51+
//
52+
}
53+
54+
/**
55+
* Show the form for editing the specified resource.
56+
*
57+
* @param int $id
58+
* @return \Illuminate\Http\Response
59+
*/
60+
public function edit($id)
61+
{
62+
//
63+
}
64+
65+
/**
66+
* Update the specified resource in storage.
67+
*
68+
* @param \Illuminate\Http\Request $request
69+
* @param int $id
70+
* @return \Illuminate\Http\Response
71+
*/
72+
public function update(Request $request, $id)
73+
{
74+
//
75+
}
76+
77+
/**
78+
* Remove the specified resource from storage.
79+
*
80+
* @param int $id
81+
* @return \Illuminate\Http\Response
82+
*/
83+
public function destroy($id)
84+
{
85+
//
86+
}
87+
}

public/css/app.css

Lines changed: 0 additions & 8 deletions
This file was deleted.

public/css/bootstrap.min.css

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)