https://github.com/7span/laravel-boilerplate
https://github.com/7span/laravel-boilerplate
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/7span/laravel-boilerplate
- Owner: 7span
- Created: 2020-08-05T12:42:28.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-03-25T10:07:26.000Z (12 months ago)
- Last Synced: 2025-04-02T22:59:56.856Z (12 months ago)
- Language: PHP
- Size: 3.53 MB
- Stars: 1
- Watchers: 5
- Forks: 1
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## About Laravel Boilerplate
The laravel boilerplate is project that uses the `Laravel` (Version 11) as a backend framework. It provides basic structure for starting any new laravel project. It has implemented the basic authetication provided by laravel.
## Laravel Packages
- [Laravel Telescope](https://laravel.com/docs/11.x/telescope) - For Monitoring request
- [Laravel Littlegatekeeper](https://github.com/spatie/laravel-littlegatekeeper) - Protect pages from access with a universal username/password combination. It is used for developer panel which includes `Telescope`.
- [Log Viewer](https://github.com/ARCANEDEV/LogViewer) - To manage and keep track of each one of your log files
- [Laravel Sanctum](https://laravel.com/docs/11.x/sanctum) - It provides a featherweight authentication system for SPAs , mobile applications, and simple, token based APIs
- [Laravel Pint](https://laravel.com/docs/11.x/pint) - It provides an opinionated PHP code style fixer for minimalists. Pint is built on top of PHP-CS-Fixer and makes it simple to ensure that your code style stays clean and consistent.
- __General Usage__
to use the pint binary all you have to do is run the following command in the root of your project.
```
./vendor/bin/pint
```
- __VS Code - Add Keyboard Shortcut to run Laravel Pint__
1. Open VS Code.
2. Open Keyboard shortcut panel, either from `file -> preferences -> keyboard Shortcuts` or `Ctrl+k Ctrl+s`
3. Ones open click on the file icon on the top to open the json file of the keyboard shortcuts.
4. Ones open add the following lines to the file.
```
[
{
"key": "ctrl+s",
"command": "workbench.action.tasks.runTask",
"args": "Pint Formatter"
}
]
```
Now when you hit Ctrl + s and your laravel project will be formatted with laravel pint.
- [Larastan](https://github.com/larastan/larastan) - Adds static typing to Laravel to improve developer productivity and code quality , Discovers bugs in your code.
- __Note:__
In any case, if you are unable to commit the code to Git, then run the command below.
```
chmod ug+x .hooks/pre-commit
```
## Supported APIs
- Register
- Login
- Get Profile
- Forget and Reset Password
## Notes
1. `Telescope` , `Log Viewer` and other developer packages are accessible with universal username and password defined in .env file under `DEVELOPER_USERNAME` and `DEVELOPER_PASSWORD`.