BrainCMS
Brain is live, Live is Brain
- Feb 17, 2014
- 86
- 32
Hello DevBest!
My name is Tom, I am the creator of BrainCMS 1.0, I started this project to learn from it,I never thought that so many people would use it! And so I am planning to create a new version to also learn from it.
Current functions
- Login [100%]
- Register [80%]
- Client (Create the SSO in the controller) Need to add online count and full screen button. [50%]
- Layout [20%]
- Profiel Page [0%]
- Staff Page [0%]
- Hotel Settings [0%]
- News [0%]
- Tags [0%]
- Shops [0%]
- Admin Panel [0%]
Snippers:
Me Controller
Client Controller
Route
PHP:
<?php
namespace App\Http\Controllers\Home;
use Auth;
use App\Http\Controllers\Controller;
class Me extends Controller
{
public function render ()
{
return view('pages.user.home.me', [
'currency' => Auth::user()->currency
]);
}
}
Client Controller
PHP:
<?php
namespace App\Http\Controllers\Home;
use Auth;
use App\Http\Controllers\Controller;
use Illuminate\Support\Str;
class Client extends Controller
{
public function render() {
$sso = $this->generateSSO();
Auth::user()->update([ "auth_ticket" => $sso ]);
return view('pages.user.home.client', [ "sso" => $sso ]);
}
private function generateSSO() {
return (string) Str::uuid();
}
}
Route
PHP:
<?php
Auth::routes();
Route::group([ "middleware" => "guest" ], function () {
Route::get('/', 'Redirect@render')->name('index');
});
Route::group([ "middleware" => "user" ], function () {
Route::group([ "namespace" => "Home" ], function () {
Route::get('me', 'Me@render')->name('me');
Route::get('client', 'Client@render')->name('client');
Route::get('logout', 'Logout@render')->name('logout');
});
});
Index
Me
Me
BrainCMS 2.0 on GitHub
You must be registered for see links
Improvements or comments feel free to ask them!
best regards,
Tom
Last edited: