Skip to content

Commit 73f05a9

Browse files
committed
patched up Readme.md and swapped homepage
1 parent d49ba48 commit 73f05a9

18 files changed

+6988
-313
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ vendor2
44
node_modules
55
build
66
dist
7-
compiled
7+
compiled
8+
.idea

README.md

Lines changed: 72 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,83 @@
1-
# README
1+
<p align="center">
2+
<br><br>
3+
<img src="https://leaf-docs.netlify.app/images/logo.png" height="100"/>
4+
<h1 align="center">Leaf MVC</h1>
5+
<br>
6+
<br><br><br>
7+
</p>
28

3-
This README would normally document whatever steps are necessary to get the
4-
application up and running.
9+
[![Latest Stable Version](https://poser.pugx.org/leafs/mvc/v/stable)](https://packagist.org/packages/leafs/mvc)
10+
[![Total Downloads](https://poser.pugx.org/leafs/mvc/downloads)](https://packagist.org/packages/leafs/mvc)
11+
[![License](https://poser.pugx.org/leafs/mvc/license)](https://packagist.org/packages/leafs/mvc)
512

6-
Things you may want to cover:
13+
# Leaf
714

8-
* PHP version
15+
LeafMVC is a simple MVC framework built on top of the leaf php micro-framework. LeafMVC lets you create clean but powerful web apps and APIs quickly. Leaf provides simple to use functions to take care of complex issues, eventually speeding up development and taking the pain out of development.
916

10-
* System dependencies
17+
## Installation
1118

12-
* Configuration
19+
It's recommended that you use [Composer](https://getcomposer.org/) to install Leaf.
1320

14-
* Database creation
21+
```bash
22+
composer create project leafs/mvc <project-name>
23+
```
1524

16-
* Database initialization
25+
This will start a new LeafMVC app.
1726

18-
* How to run the test suite
27+
## Basic Info
1928

20-
* Services (job queues, cache servers, search engines, etc.)
29+
```bash
30+
C:.
31+
├───app
32+
│ ├───console
33+
│ ├───controllers
34+
│ │ └───Auth
35+
│ ├───database
36+
│ │ ├───factories
37+
│ │ ├───migrations
38+
│ │ └───seeds
39+
│ ├───helpers
40+
│ ├───models
41+
│ ├───routes
42+
│ └───views
43+
│ ├───assets
44+
│ │ ├───css
45+
│ │ ├───images
46+
│ │ ├───js
47+
│ │ └───sass
48+
│ ├───components
49+
│ └───pages
50+
│ └───errors
51+
├───config
52+
│ └───command
53+
├───public
54+
├───storage
55+
│ ├───app
56+
│ │ └───public
57+
│ ├───framework
58+
│ │ └───views
59+
│ └───logs
60+
└───vendor
61+
```
2162

22-
* Deployment instructions
63+
This directory structure is a blend of Ruby on Rails and Laravel
2364

24-
* ...
65+
To run your LeafMVC application, use
66+
67+
```bash
68+
php leaf serve
69+
```
70+
71+
## Learning LeafMVC
72+
73+
LeafMVC has a very easy to understand [documentation](https://leafmvc.netlify.app/) which contains information on all operations in LeafMVC.
74+
75+
Since LeafMVC runs on Leaf, you can check out the Leaf PHP Framework documentation [here](https://leaf-docs.netlify.app).
76+
77+
## License
78+
79+
The LeafMVC framework is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).
80+
81+
## View LeafMVC's docs [here](https://leafmvc.netlify.com/)
82+
83+
## View Leaf's docs [here](https://leaf-docs.netlify.com/)

README2.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# README
2+
3+
This README would normally document whatever steps are necessary to get the
4+
application up and running.
5+
6+
Things you may want to cover:
7+
8+
* App Info
9+
10+
* Installation
11+
12+
* System dependencies
13+
14+
* Configuration
15+
16+
* Database creation
17+
18+
* Database initialization
19+
20+
* Deployment instructions

app/controllers/Auth/ConfirmPasswordController.php

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

app/controllers/Auth/ForgotPasswordController.php

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
<?php
2+
namespace App\Controllers\Auth;
23

3-
namespace App\Http\Controllers\Auth;
4-
5-
use App\Http\Controllers\Controller;
6-
use Illuminate\Foundation\Auth\AuthenticatesUsers;
4+
use App\Controllers\Controller;
5+
use Leaf\Core\Auth;
76

87
class LoginController extends Controller
98
{
@@ -13,27 +12,7 @@ class LoginController extends Controller
1312
|--------------------------------------------------------------------------
1413
|
1514
| This controller handles authenticating users for the application and
16-
| redirecting them to your home screen. The controller uses a trait
17-
| to conveniently provide its functionality to your applications.
15+
| redirecting them to your home screen.
1816
|
1917
*/
20-
21-
use AuthenticatesUsers;
22-
23-
/**
24-
* Where to redirect users after login.
25-
*
26-
* @var string
27-
*/
28-
protected $redirectTo = '/home';
29-
30-
/**
31-
* Create a new controller instance.
32-
*
33-
* @return void
34-
*/
35-
public function __construct()
36-
{
37-
$this->middleware('guest')->except('logout');
38-
}
3918
}
Lines changed: 8 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
<?php
2+
namespace App\Controllers\Auth;
23

3-
namespace App\Http\Controllers\Auth;
4+
use App\Controllers\Controller;
45

5-
use App\Http\Controllers\Controller;
6-
use App\User;
7-
use Illuminate\Foundation\Auth\RegistersUsers;
8-
use Illuminate\Support\Facades\Hash;
9-
use Illuminate\Support\Facades\Validator;
10-
11-
class RegisterController extends Controller
6+
class RegisterLoginController extends Controller
127
{
138
/*
149
|--------------------------------------------------------------------------
@@ -20,53 +15,9 @@ class RegisterController extends Controller
2015
| provide this functionality without requiring any additional code.
2116
|
2217
*/
23-
24-
use RegistersUsers;
25-
26-
/**
27-
* Where to redirect users after registration.
28-
*
29-
* @var string
30-
*/
31-
protected $redirectTo = '/home';
32-
33-
/**
34-
* Create a new controller instance.
35-
*
36-
* @return void
37-
*/
38-
public function __construct()
39-
{
40-
$this->middleware('guest');
41-
}
42-
43-
/**
44-
* Get a validator for an incoming registration request.
45-
*
46-
* @param array $data
47-
* @return \Illuminate\Contracts\Validation\Validator
48-
*/
49-
protected function validator(array $data)
50-
{
51-
return Validator::make($data, [
52-
'name' => ['required', 'string', 'max:255'],
53-
'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
54-
'password' => ['required', 'string', 'min:8', 'confirmed'],
55-
]);
56-
}
57-
58-
/**
59-
* Create a new user instance after a valid registration.
60-
*
61-
* @param array $data
62-
* @return \App\User
63-
*/
64-
protected function create(array $data)
65-
{
66-
return User::create([
67-
'name' => $data['name'],
68-
'email' => $data['email'],
69-
'password' => Hash::make($data['password']),
70-
]);
71-
}
18+
// return Validator::make($data, [
19+
// 'name' => ['required', 'string', 'max:255'],
20+
// 'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
21+
// 'password' => ['required', 'string', 'min:8', 'confirmed'],
22+
// ]);
7223
}

app/controllers/Auth/ResetPasswordController.php

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

app/controllers/Auth/VerificationController.php

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

app/views/assets/css/bootstrap.min.css

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

0 commit comments

Comments
 (0)