Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Leaf MVC v4.0 #36

Draft
wants to merge 248 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
248 commits
Select commit Hold shift + click to select a range
ffa1583
made work directories upper case
mychidarko Jul 13, 2020
de3a9e7
updated index.php
mychidarko Jul 13, 2020
7f0e8c6
Added Config\App
mychidarko Jul 13, 2020
0df8be0
:fire: removed unused config files
mychidarko Jul 13, 2020
5c863d1
:art: seperated paths from Config/bootstrap.php
mychidarko Jul 13, 2020
ff76acf
:art: updated app paths && added config/functions
mychidarko Jul 13, 2020
f16fa7d
:art: removed route config
mychidarko Jul 13, 2020
3ce5565
:bug: fixed up App\Controllers\Controller
mychidarko Jul 13, 2020
64e3652
:art: cleared out views directory
mychidarko Jul 13, 2020
4584562
:fire: removed unused code
mychidarko Jul 13, 2020
65961b7
:fire: removed unused controller
mychidarko Jul 13, 2020
62c3810
:bug: fixes in App\Database
mychidarko Jul 13, 2020
cd4ac99
:bug: Updated base model
mychidarko Jul 13, 2020
3f8edaa
:bug: Updated example model
mychidarko Jul 13, 2020
5a58661
:lipstick: updated home route UI
mychidarko Jul 13, 2020
2767181
:art: tidied up example command
mychidarko Jul 13, 2020
3c908b5
:bug: included paths in console
mychidarko Jul 13, 2020
1c65338
:bug: removed set404 from Routes/api.php
mychidarko Jul 13, 2020
5571ff4
:art: moved Routes/ to Routes.php
mychidarko Jul 13, 2020
11602b9
:bulb: added example controller with comments
mychidarko Jul 13, 2020
25da0a4
:children_crossing: updated controller naming in console
mychidarko Jul 13, 2020
694f52b
:recycle: used file paths in console commands
mychidarko Jul 13, 2020
b94c8a9
:boom: switched templating to blade
mychidarko Jul 13, 2020
4704587
:ambulance: updated console stubs
mychidarko Jul 13, 2020
5de05b5
:sparkles: added option to switch between blade and veins (for older …
mychidarko Jul 13, 2020
a440039
:art: cleaned up g:migration
mychidarko Jul 13, 2020
11dcd9e
:sparkles: added option to delete either blade or vein templates
mychidarko Jul 13, 2020
837f145
:art: cleaned up console commands
mychidarko Jul 13, 2020
b772d5b
:children_crossing: cleaned up db:rollback command
mychidarko Jul 13, 2020
1de80b7
:children_crossing: cleaned up g commands
mychidarko Jul 13, 2020
4e20a6a
:bookmark: prepping for v2 release
mychidarko Jul 13, 2020
b1c736a
:bookmark: prepping for v2 release
mychidarko Jul 13, 2020
708bc31
:bookmark: prepping for v2 release
mychidarko Jul 13, 2020
14746a8
rebase
mychidarko Jul 13, 2020
69d54d3
:bookmark: prepping for v2 release
mychidarko Jul 13, 2020
9cad066
Merge pull request #4 from leafsphp/convert-v1-v2
mychidarko Jul 13, 2020
dbbc1c0
:heavy_plus_sign: installed leaf v2.4 and aloe cli
mychidarko Dec 30, 2020
f1c4970
Updated welcome page layout
mychidarko Dec 31, 2020
a20b34c
:heavy_plus_sign: Started integration with Leaf v2.5
mychidarko Jan 5, 2021
4328d23
:sparkles: started scaffolding support
mychidarko Jan 5, 2021
d762091
:sparkles: Integrated scaffolding
mychidarko Jan 6, 2021
bef1ce8
:sparkles: Added view config
mychidarko Jan 8, 2021
d0ff77e
:sparkles: Tidy auth config
mychidarko Jan 8, 2021
d8e3ce3
:sparkles: Added session methods
mychidarko Jan 12, 2021
72a3a5b
:sparkles: Added conditional init of env files
mychidarko Jan 12, 2021
3306ed2
:bookmark: prepping for new release
mychidarko Jan 19, 2021
5625217
:bookmark: Prepping for release
mychidarko Jan 21, 2021
74c98f2
:bug: Fixed command descriptions not showing
mychidarko Jan 21, 2021
64e0b92
:bookmark: prepping for new release
mychidarko Feb 26, 2021
ba4b4d0
:sparkles: Added aloe cli v1.1.0 docs
mychidarko Mar 1, 2021
56418e0
:sparkles: Added leaf functions to CLI
mychidarko Mar 1, 2021
80d68eb
Merge branch 'v2.x' of https://github.com/leafsphp/leafMVC into v2.x
mychidarko Mar 1, 2021
af08b2a
:bug: fixed storage path
mychidarko Mar 6, 2021
b9880f4
:arrow_up: upgraded leaf to v2.5.0
mychidarko Apr 27, 2021
91c88de
:bug: fixed broken path link
mychidarko Apr 27, 2021
a004285
:fire: removed now unnecessary code
mychidarko Apr 27, 2021
b76f56d
:sparkles: added application configuration
mychidarko Apr 27, 2021
5e78a4f
:alien: configured leaf mvc with v2.5.0 changes
mychidarko Apr 27, 2021
5eb982e
:sparkles: added new leafmvc link
mychidarko Apr 29, 2021
2ea86aa
:sparkles: added route example
mychidarko Apr 29, 2021
e2d5ed9
:bug: placed route modules after namespace
mychidarko Apr 30, 2021
90f80e1
:alien: added new required env vars
mychidarko May 3, 2021
930e825
:art: updated base files
mychidarko May 3, 2021
f327e40
:alien: added database config
mychidarko Jun 12, 2021
183ee95
:sparkles: added database paths
mychidarko Jun 12, 2021
7340b54
:alien: added leaf database methods
mychidarko Jun 12, 2021
96e70d0
:arrow_up: updated dependencies
mychidarko Oct 14, 2021
a476735
:art: updated index structure
mychidarko Oct 14, 2021
04d483b
:alien: updated to leafmvc's db
mychidarko Oct 14, 2021
34e392e
:alien: updated to static $capsule
mychidarko Oct 14, 2021
b106293
:sparkles: added example schema
mychidarko Oct 14, 2021
36e6d60
:alien: updated to match leaf mvc core
mychidarko Oct 14, 2021
c0ba5d3
:alien: updated to match leaf mvc core
mychidarko Oct 14, 2021
c50d699
:fire: removed unused files
mychidarko Oct 14, 2021
742973c
:sparkles: updated config
mychidarko Oct 14, 2021
5ab22b1
:wrench: updated minimum stability
mychidarko Nov 12, 2021
b421aeb
:sparkles: added support for leaf 3
mychidarko Nov 13, 2021
14b1b3f
:art: restructured leaf mvc
mychidarko Nov 13, 2021
c3d2a94
:art: restructured leaf mvc
mychidarko Nov 13, 2021
f8de480
:wrench: switched to leaf 3 error pages
mychidarko Nov 14, 2021
a09ed8e
:wrench: updated autoloading for folders
mychidarko Nov 14, 2021
fc415ec
:bookmark: updated leaf mvc version on console
mychidarko Nov 15, 2021
118f846
:ambulance: fixed autoloading
mychidarko Nov 22, 2021
1ebd048
:ambulance: removed migrations from autoloading
mychidarko Nov 22, 2021
45b4943
:ambulance: fixed broken paths
mychidarko Nov 22, 2021
c46e960
:arrow_up: updated dependencies
mychidarko Nov 22, 2021
cf0d8d4
:alien: updated dotenv script
mychidarko Nov 22, 2021
cd3952f
:alien: updated example base controller
mychidarko Nov 22, 2021
1e78048
:alien: updated auth config
mychidarko Nov 22, 2021
934239e
:wrench: updated htaccess
mychidarko Nov 24, 2021
0342c10
:art: moved project root to public
mychidarko Nov 24, 2021
90def92
:arrow_up: updated dependencies
mychidarko Nov 24, 2021
af31709
:art: moved static assets to public directory
mychidarko Nov 24, 2021
fcd17d2
:wrench: added mirror root for dev/shared hosts
mychidarko Nov 24, 2021
bd38450
:art: moved static assets to public directory
mychidarko Nov 24, 2021
fbc61b6
:memo: updated readme
mychidarko Nov 24, 2021
deb18e8
:memo: updated readme
mychidarko Nov 24, 2021
7eb79b2
:memo: updated readme
mychidarko Nov 24, 2021
06d4a89
:memo: updated readme
mychidarko Nov 28, 2021
d259d29
:memo: updated readme
mychidarko Dec 5, 2021
5a99752
:memo: updated readme
mychidarko Dec 10, 2021
1c0db38
:memo: updated readme
mychidarko Dec 16, 2021
cb6dcf5
:wrench: added GH sponsors
mychidarko Dec 16, 2021
8fc84ae
:bug: fixed broken paths bug
mychidarko Jan 5, 2022
ace33e2
:bug: fixed env loads
mychidarko Jan 5, 2022
2942c27
⬆️ updated dependencies
mychidarko Jan 5, 2022
a4bd9b6
:bug: fixed user factory definition match
mychidarko Jan 5, 2022
2667acd
:fire: removed explicit connect
mychidarko Jan 6, 2022
7e86ee2
🔀 Merge pull request #16 from mychidarko/v3.x
mychidarko Jan 6, 2022
da29297
⬆️ upgraded dependencies
mychidarko Feb 9, 2022
907ca34
⬆️ upgraded dependencies
mychidarko Feb 9, 2022
a6c7b46
:bug: fixed factory and schema inconsistencies
mychidarko Feb 9, 2022
fe84ae9
:bug: fixed env files not loading
mychidarko Feb 9, 2022
d956acc
:memo: fixed mvc url
mychidarko Feb 9, 2022
7770bbb
:memo: updated wrong labels
mychidarko Feb 9, 2022
1175cfe
:alien: added DB_TABLE config
mychidarko Feb 17, 2022
01a9ea7
♻️ updated config
mychidarko Feb 17, 2022
7697ac7
🏗️ switched auth to sessions by default
mychidarko Feb 17, 2022
5ec9f7e
:art: updated styles
mychidarko Feb 17, 2022
75fd901
:bulb: updated comments
mychidarko Feb 17, 2022
090ee59
⬆️ updated aloe CLI
mychidarko Feb 18, 2022
64ba653
♻️ switched to single quotes
mychidarko Feb 19, 2022
06beec0
:wrench: updated fullname
mychidarko Mar 6, 2022
b3f1777
⬆️ updated aloe CLI
mychidarko Mar 6, 2022
7c4bc9b
:arrow_up: installed leaf 3
mychidarko Apr 15, 2022
2e8931b
:sparkles: upgraded dependencies
mychidarko May 29, 2022
5484d6c
🧑‍💻 simplified db connection
mychidarko May 29, 2022
6892591
:bug: fixed env inconsistencies
mychidarko May 29, 2022
c46fc08
:sparkles: upgraded dependencies
mychidarko May 29, 2022
038942a
⬆️ update version numbers
mychidarko Sep 17, 2022
5e86ed0
chore: update leaf
mychidarko Oct 4, 2022
7e5da71
fix: link env to app config
mychidarko Oct 4, 2022
cbbc3b1
feat: switch to direct leaf config
mychidarko Oct 4, 2022
d8fba21
chore: update dependencies
mychidarko Mar 5, 2023
c3b6cce
feat: add syncLeafDb line
mychidarko Mar 14, 2023
b6ba042
feat: update examplecommand
mychidarko Jun 25, 2023
540d789
feat: update base factory
mychidarko Jun 25, 2023
89f4ffa
fix: update leaf db in example factory
mychidarko Jun 25, 2023
c5082a9
Update auth.php
Shubhamc4 Jun 28, 2023
86dcdd1
chore: remove unused files
mychidarko Jul 3, 2023
ab06e8d
feat: update paths config
mychidarko Jul 3, 2023
93c0d79
feat: update view config
mychidarko Jul 3, 2023
9383423
chore: format project files
mychidarko Jul 3, 2023
70ac025
feat: update underlying libraries
mychidarko Jul 7, 2023
b95372e
feat: switch to latest schema version
mychidarko Jul 7, 2023
b163efa
chore: format migrations
mychidarko Jul 7, 2023
23058b7
chore: format schema
mychidarko Jul 7, 2023
f784981
Merge pull request #19 from Shubhamc4/patch-1
mychidarko Jul 29, 2023
1dcf6a0
feat: update autoload config
mychidarko Aug 7, 2023
5be04be
chore: update env example
mychidarko Aug 7, 2023
d04c6e3
chore: clean up directories
mychidarko Aug 7, 2023
1f239c3
chore: remove http version config
mychidarko Aug 7, 2023
a3a8b67
feat: update base controller
mychidarko Aug 8, 2023
b97759e
feat: update base factory
mychidarko Aug 8, 2023
4dfd1f0
feat: update example factory
mychidarko Aug 8, 2023
9d97ccc
feat: update seeds
mychidarko Aug 8, 2023
8c7e16e
feat: update routes
mychidarko Aug 8, 2023
46b7cb9
feat: update models
mychidarko Aug 8, 2023
52632b8
feat: add example css in views path
mychidarko Aug 8, 2023
b2eaa04
feat: update migrations
mychidarko Aug 8, 2023
4e7bd23
chore: update file formatting
mychidarko Aug 8, 2023
cea24c8
feat: update code to match mvc core version
mychidarko Aug 8, 2023
22a900b
feat: update code to match mvc core version
mychidarko Aug 8, 2023
e150942
chore: update readme
mychidarko Aug 8, 2023
9283904
chore: update composer.json
mychidarko Aug 8, 2023
ed2ef8b
feat: add support for vite
mychidarko Aug 8, 2023
cddba7a
feat: update index file
mychidarko Aug 8, 2023
8fa66dd
chore: update readme
mychidarko Aug 8, 2023
3c07f75
feat: setup vite defaults
mychidarko Aug 11, 2023
b4e50be
feat: add vite bridge
mychidarko Aug 12, 2023
d6bd0b3
chore: update readme
mychidarko Aug 12, 2023
69cdf8c
feat: add directory comments
mychidarko Aug 12, 2023
06ed6e7
chore: update welcome blade file
mychidarko Aug 23, 2023
73ca792
chore: update demo packages
mychidarko Aug 23, 2023
1f6842b
chore: update readme
mychidarko Aug 24, 2023
1d01413
feat: add autoloading of libraries
mychidarko Sep 12, 2023
a94d6d9
fix: patch up sqlite db path
mychidarko Sep 12, 2023
0590bce
fix: update mailers folder
mychidarko Sep 12, 2023
d33b7d3
FIX: Add missing Auth configuration
crosa7 Oct 6, 2023
083a441
Merge pull request #21 from leafsphp/add-missing-auth-configuration
mychidarko Oct 6, 2023
718602c
🔐 Security Fix: Prevent direct access to .env file
ibnsultan Jan 2, 2024
2349245
Merge pull request #24 from ibnsultan/patch-1
mychidarko Mar 5, 2024
e469fa7
feat: csrf config file
ibnsultan Aug 19, 2024
28ee8e9
feat: csrf file config
ibnsultan Aug 19, 2024
e35d130
feat: csrf config file
ibnsultan Aug 19, 2024
98d930c
Merge pull request #27 from ibnsultan/v3.x
ibnsultan Aug 19, 2024
5874d17
feat: update mvc config
mychidarko Aug 25, 2024
b38ef15
feat: switch to new leaf config api
mychidarko Aug 25, 2024
132633c
chore: update modules
mychidarko Aug 25, 2024
2a505cf
Register Commands from `Command::class`
ibnsultan Sep 6, 2024
ea6d2be
Commands Registrar
ibnsultan Sep 6, 2024
6565df9
Commands Registrar
ibnsultan Sep 6, 2024
12baa45
Merge pull request #28 from ibnsultan/v3.x
ibnsultan Sep 8, 2024
04a57ad
Use the stable aloe package
ibnsultan Sep 8, 2024
b6a1551
fix: patch up composer warnings on install
mychidarko Sep 11, 2024
4b2caf9
chore: update mvc version
mychidarko Sep 13, 2024
1e5a9b3
feat: update dev instructions
mychidarko Sep 13, 2024
0c74990
feat: update default boilerplate
mychidarko Sep 17, 2024
e34398c
Merge pull request #29 from leafsphp/fix/mvc-core-issues
mychidarko Sep 17, 2024
c7a3ba4
chore: create symlink for public storage after project creation
ibnsultan Sep 21, 2024
0549250
feat: add csrf to deps
mychidarko Oct 2, 2024
83afddc
chore: update version
mychidarko Oct 2, 2024
e9510b8
feat: update csrf config
mychidarko Oct 2, 2024
f0b8dba
chore: update version
mychidarko Oct 2, 2024
bc492a5
add: session cookie parameters
ibnsultan Oct 2, 2024
7ab9c68
feat: update readme
mychidarko Oct 8, 2024
7f4012f
chore: updated package dendencies
ibnsultan Oct 10, 2024
6208d21
Merge pull request #31 from ibnsultan/v3.x
mychidarko Oct 20, 2024
4290fa2
fix: remove storage link on init
mychidarko Nov 2, 2024
7aa46d7
chore: update auth config to match new version
mychidarko Nov 10, 2024
7d6c15e
feat: update db stubs
mychidarko Nov 10, 2024
4ef5f6b
feat: update default application shell
mychidarko Nov 10, 2024
7ad4a2c
feat: update landing page
mychidarko Nov 12, 2024
8d922d6
feat: add csrf hard toggle option
mychidarko Nov 12, 2024
68cef7d
fix: update version constraints
mychidarko Nov 12, 2024
5a3ad42
add: CSRF protection configuration options and documentation
ibnsultan Nov 16, 2024
3875bea
fix: Change User model fillable field from 'fullname' to 'name'
screenfluent Nov 23, 2024
3d6a3c0
Merge pull request #34 from screenfluent/fix/user-model-field-consist…
mychidarko Nov 23, 2024
380354b
feat: update view config
mychidarko Dec 3, 2024
0102add
feat: remove non-essential directories
mychidarko Dec 5, 2024
bc65c52
feat: add new defaults
mychidarko Dec 8, 2024
d0ce792
feat: remove unnecessary files
mychidarko Dec 8, 2024
e0fe610
chore: remove package lock
mychidarko Dec 8, 2024
420a913
feat: replace all db files with schema files
mychidarko Dec 12, 2024
0c6a0a6
feat: opt into new view engine behaviour
mychidarko Dec 12, 2024
92dc00c
chore: update gitignored files
mychidarko Dec 12, 2024
b2f0f92
chore: update readme
mychidarko Dec 12, 2024
4ca0a31
feat: remove non-essential modules from default
mychidarko Dec 18, 2024
9cb6598
chore: update composer config
mychidarko Dec 18, 2024
f833cb3
feat: swap out serve command
mychidarko Dec 18, 2024
99c1e62
feat: update users.yml
mychidarko Dec 19, 2024
dbb9842
chore: update readme
mychidarko Dec 19, 2024
3e9e9de
chore: update dep versions
mychidarko Dec 19, 2024
80951f0
chore: update readme
mychidarko Dec 19, 2024
bb2894b
feat: update structure to match new mvc-core
mychidarko Dec 22, 2024
956ac6f
feat: make vite opt-in
mychidarko Dec 22, 2024
ccd36c4
chore: remove unused deps
mychidarko Jan 7, 2025
2d5a860
feat: switch to new blade version
mychidarko Jan 10, 2025
8732e85
feat: switch to new core
mychidarko Jan 10, 2025
37ddd3c
feat: update seeds
mychidarko Jan 10, 2025
f16c73a
feat: add new welcome screen
mychidarko Jan 18, 2025
3b378fc
feat: update welcome screen
mychidarko Jan 20, 2025
8cdc5a6
feat: update index with view route
mychidarko Feb 4, 2025
ab8b30d
feat: update labels to add middleware
mychidarko Feb 18, 2025
4f41a57
feat: update all associated modules
mychidarko Feb 20, 2025
0b7dcbb
chore: remove queue and redis from default installation
mychidarko Feb 21, 2025
c43c06f
feat: remove starter css
mychidarko Feb 26, 2025
54395fb
feat: update default layout
mychidarko Feb 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 20 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
APP_NAME=LeafMVC
APP_NAME=LEAF_MVC
APP_ENV=local
APP_KEY=base64:AUAyDriQD1kFdIbwTHlnCm2pYn+qxDBa55SFwB9PUzg=
APP_KEY=base64:AUAyDriQD1kFdIAPIbwTHlnCm2pYn+qxDBa55SFwB9PUzg=
APP_DOWN=false
APP_DEBUG=true
APP_URL=http://localhost
APP_PORT=5500
APP_URL=http://localhost:5500/

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=LeafMVC
DB_USERNAME=root
DB_DATABASE=LEAF_DB_NAME
DB_USERNAME=LEAF_DB_USERNAME
DB_PASSWORD=
DB_CHARSET=utf8
DB_COLLATION=utf8_unicode_ci
# DB_COLLATION=utf8_general_ci

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_DEBUG=SERVER
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PROD_SERVER=hello
PROD_PORT=22
PROD_USER=leaf

SERVER_NAME=LEAF_SERVER
SERVER_PORT=5500
SERVER_USER=
SERVER_PASSWORD=

APPLICATION_DIR=leaf
APPLICATION_PATH=leaf
APPLICATION_PATH=leaf

TOKEN_SECRET=
32 changes: 29 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,34 @@
# Packages
composer.phar
vendor
composer.lock
.env
node_modules

# Environment
.env
.env.backup
.env.production

# Build
build
dist
compiled
.idea

# System/Editor
.fleet
.idea
.nova
.vscode
.zed

# Leaf
.hana
.alchemy
hot
storage/framework
storage/logs
storage/database
public/storage

# Logs
npm-debug.log
yarn-error.log
50 changes: 50 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<p align="center">
<a href="https://leafphp.dev" target="_blank">
<img src="https://leafphp.dev/logo-circle.png" height="100" alt="Leaf Logo">
</a>
<h1 align="center">Leaf MVC</h1>
</p>

<p align="center">
<a href="https://packagist.org/packages/leafs/mvc"><img src="https://img.shields.io/packagist/dt/leafs/mvc" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/leafs/leaf"><img src="https://poser.pugx.org/leafs/mvc/v/stable" alt="Latest Stable Version"></a>
<a href="https://packagist.org/packages/leafs/leaf"><img src="https://poser.pugx.org/leafs/mvc/license" alt="License"></a>
</p>

Leaf MVC is built on top of [leaf php](https://leafphp.dev), and is the framework for people who just want to ship. It gives you the structure and tools of larger frameworks like Laravel and Ruby on Rails with the simplicity and elegance of Leaf which lets you focus on shipping—fast.

## Setting up

You can install Leaf MVC with the [Leaf CLI](https://cli.leafphp.dev)

```sh
leaf create <project-name> --mvc
```

This will create an MVC application for you. Start off your project with authentication, mailing, UI/UX, and a ton of other features using Leaf's [powerful modules](https://leafphp.dev/docs/modules/), and then run your app with:

```bash
php leaf serve
```

## Learning Leaf MVC

- Leaf MVC is Leaf + an MVC wrapper, we provide a lot of [documentation](https://leafphp.dev/docs/mvc/) on how to use Leaf MVC.
- You can also check out our [youtube channel](https://www.youtube.com/channel/UCllE-GsYy10RkxBUK0HIffw) which has video tutorials on different topics
- Checkout the [learn page](https://leafphp.dev/learn/) on our website for more resources

## Contributing

We are glad to have you. All contributions are welcome! To get started, familiarize yourself with our [contribution guide](https://leafphp.dev/community/contributing.html) and you'll be ready to make your first pull request 🚀.

To report a security vulnerability, you can reach out to [@mychidarko](https://twitter.com/mychidarko) or [@leafphp](https://twitter.com/leafphp) on twitter. We will coordinate the fix and eventually commit the solution in this project.

## Sponsoring Leaf

Leaf has always been open-source and free, but as the project grows, so do the challenges of maintaining and building new features. The costs—time, resources, and infrastructure—are increasing rapidly, and our small team can no longer sustain this alone.

To keep Leaf alive and thriving, we need your support now more than ever. Sponsor us on [GitHub Sponsors](https://github.com/sponsors/leafsphp) or visit our [sponsors page](https://leafphp.dev/support/) to explore ways you can contribute.

Your help makes all the difference—let’s keep Leaf moving forward together!

And to all our [existing cash/code contributors](https://leafphp.dev#sponsors), we love you all ❤️
83 changes: 0 additions & 83 deletions README.md

This file was deleted.

39 changes: 39 additions & 0 deletions README2.MD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# README

This README would normally document whatever steps are necessary to get the
application up and running.

Things you may want to cover:

## App Info

Created with Leaf MVC v4 + Leaf v4

## Installation

You can set up your dependencies by running:

```bash
composer install
```

## System dependencies

To run this application, you need to have:

- PHP 7.4 or higher
- Composer

## Configuration

## Database creation

To create your database, you can run:

```bash
php leaf db:migrate
```

## Deployment instructions

Check out the [Leaf documentation](https://leafphp.dev/learn/deployment/) for more information on how to deploy your Leaf app.
20 changes: 0 additions & 20 deletions README2.md

This file was deleted.

43 changes: 0 additions & 43 deletions app/console/exampleCommand.php

This file was deleted.

18 changes: 0 additions & 18 deletions app/controllers/Auth/LoginController.php

This file was deleted.

23 changes: 0 additions & 23 deletions app/controllers/Auth/RegisterController.php

This file was deleted.

21 changes: 12 additions & 9 deletions app/controllers/Controller.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
<?php
namespace App\Controllers;

use Leaf\Core\Controller as AppController;
use Leaf\Core\Http\Request;
namespace App\Controllers;

class Controller extends AppController {
public function __construct() {
parent::__construct();
$this->request = new Request;
}
}
/**
* This is the base controller for your Leaf MVC Project.
* You can initialize packages or define methods here to use
* them across all your other controllers which extend this one.
*/
class Controller extends \Leaf\Controller
{
// You can define methods here that would be used
// throughout your controller classes
// public function someMethod() {}
}
Loading