G
G
georgich2015-12-28 17:06:36
Laravel
georgich, 2015-12-28 17:06:36

How to display fields in SleepingOwl admin panel?

Greetings!
Just started learning php and laravel in particular. Laravel version 5.2. Installed the SleepingOwl admin panel. The documentation for this admin is just disgusting. Added menu items:

Admin::menu()->url('menu')->label('Меню')->icon('fa-reorder');
Admin::menu()->url('pages')->label('Страницы')->icon('fa-files-o');
Admin::menu()->url('settings')->label('Настройки')->icon('fa-gear')->uses('\App\HTTP\Controllers\[email protected]');

I made the SettingsController controller with the getSettings function:
<?php namespace App\Http\Controllers;

use Illuminate\Routing\Controller;

class SettingsController extends Controller
{
    public function getSettings()
    {
        return view('settings');
    }
}

The point is. I want to make a Settings page where I add text fields to change the password and name (not login) of the account. What model do I need to create now to implement this? Or do I need to use the SleepingOwlModel somehow?
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Rustamka Vorontsov, 2015-12-28
@rmfordev

Excuse me, but what does learning laravel and the sleeping-owl/admin module have to do with it?)
Learn php and laravel , why study the module?)
Authorization from the laravel box
further
Middleware
And you can sculpt your own admin panel using the Routing
links Learn

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question