cleaniquecoders / splate
Web Application Boilerplate
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 0
Type:project
Requires
- php: >=5.6.4
- cleaniquecoders/artisan-extended: ^1.0
- cleaniquecoders/setting: ^1.0
- doctrine/dbal: ^2.5
- laravel/framework: 5.3.*
- laravel/socialite: ^2.0
- laravelcollective/html: ^5.3.0
- santigarcor/laratrust: 3.0.*
- teepluss/theme: ^2.0
- tymon/jwt-auth: 0.5.*
Requires (Dev)
- fzaninotto/faker: ~1.4
- maddhatter/laravel-view-generator: ^0.0.3
- mockery/mockery: 0.9.*
- nasrulhazim/clean: dev-master
- phpunit/phpunit: ~5.0
- symfony/css-selector: 3.1.*
- symfony/dom-crawler: 3.1.*
This package is auto-updated.
Last update: 2023-12-03 06:57:24 UTC
README
A SaaS Boilerplate to speed up your SaaS Application Developement
Installation
Create new Splate project
composer create-project cleaniquecoders/splate
Update database connection and email configuration in .env
.
Login with Facebook
Configure Facebook App Details in the .env
file and set the config/auth.php
the oauth.facebook
key to true to enable login with Facebook.
Get the client id and secret from Facebook for Developers by creating application.
FACEBOOK_CLIENT_ID=
FACEBOOK_SECRET=
FACEBOOK_REDIRECT=http://localhost:8000/auth/facebook/callback
You may want to refer to this tutorial if you have any issues with setting up the Facebook login.
Login via API
API endpoint to login, using http method of POST
. Login using email
and password
field.
http://domain.com/api/auth
You should get something like this once you're successfully logged in.
{"token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOjEsImlzcyI6Imh0dHA6XC9cL2xvY2FsaG9zdDo4MDAwXC9hcGlcL2F1dGgiLCJpYXQiOjE0NzY5NzMyOTAsImV4cCI6MTQ3Njk3Njg5MCwibmJmIjoxNDc2OTczMjkwLCJqdGkiOiJkYzY3NjMxOTQ3MzYzMmFjMjQ4ZDg0ODgzZTI1N2M3ZiJ9.k5b8ubtSTRi6T8_kqLbxzmN4atC2v4XKAvmyn4a2YEI"}
Themes
This web app boilerplate comes with pre-installed and configured with Laravel Theme by teeplus. Following are common commands can be use for theme development.
Create a new theme
php artisan theme:create theme_name
Middleware
The teeplus/laravel-theme
does not come with a middleware.
With this middleware, you still can use return view('home.index')
in your controller.
Usage
Route::get('dashboard','HomeController@index')->middleware('theme');
OR
Route::get('dashboard','HomeController@index')->middleware('theme:theme_name,layout_name');
Assets and Components
To include assets
{{ Theme::asset()->container('footer')->add('delete-script', 'js/delete.js') }}
To include partials or components
{!! Theme::partial('components.checkboxes',['options' => $roles,'label' => 'Role', 'selected' => [], 'name' => 'role_id']) !!}
TODO
- Require middleware to check if user not yet activate their account, redirect to resend activation account link
- User Manager
- Error pages - 403, 404, 500
- Laravel Passport, Consume Own API Middleware
- Migrate User Manager using VueJs
- Provide Installer for this boilerplate
- Login with Facebook
- JWT
- Laravel Collective
- Support Themes