LESK, is a template project based on the Laravel LTS, combining a set of features that can kick start any Web application for the Internet or on an Intranet.
Look at our Web site at: lesk.it for more info.
๐ Enterprise Web application starter kit or template using Laravel
Home Page: http://lesk.it
License: GNU General Public License v3.0
Greetings!
Thank you for your work !.
Could after each update to describe "what's new" in CHANGELOG.md?
Hello,
I have been able to set up the project but I cannot seed. When I run the 'php artisan db:seed', I get the following error.
[Tylercd100\LERN\Exceptions\NotifierFailedException]
Expected response code 220 but got code "", with message ""
[Swift_TransportException]
Expected response code 220 but got code "", with message ""
Any help on this?
Best Regards,
Sammy.
Hi,
I'm a new developer using this project and have nothing but good things to say about it. However, there are some new features in Laravel 5.3 that I would like to take advantage of (quick sortable columns, channels, etc.) that aren't in 5.1. Could you give me an idea of how feasible an upgrade would be for this existing project?
Thanks!
Thanks for sharing this project. It helps me to learn Laravel. While my app's .env file is set to Development, I'm finding that the gulp.js file is not pointing to the themes, so it's ignoring these files when they change.
I believe I can run gulp --production to update the min files, but for development, I'd rather continue using the non-minified css files? As a Laravel beginner, what am I overlooking to have Laravel use the non-production css files?
I have some views I want to have a top-navigation and not the side-bar navigation we see in ADMINLTE.
I have created views to follow the exact markup as we see here:
https://almsaeedstudio.com/themes/AdminLTE/pages/layout/top-nav.html
The only problem I am facing now is that I cannot "pull" in the menu using your menubuilder system to reflect the correct markup for layout-top-nav view.
The required markup style is:
<ul class="nav navbar-nav">
<li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
<li class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
following code produces:
{!! MenuBuilder::renderMenu('home', false) !!}
<ul class="sidebar-menu">
<li><a href="/dashboard"><i class="fa fa-dashboard"></i> <span>Dashboard</span></a>
</li>
<li><a href="/hf"><i class="fa fa-building"></i> <span>List of all HF</span></a>
</li>
<li><a href="/si"><i class="fa fa-sun-o"></i> <span>List of all SI</span></a>
</li>
<li class="treeview"><a href="/test-acl/home"><i class="fa fa-bolt"></i><span>Test ACL</span><i class="fa fa-angle-left pull-right"></i></a>
<ul class="treeview-menu">
<li><a href="/test-acl/admins"><i class="fa fa-file"></i> <span>Admins</span></a>
</li>
<li><a href="/test-acl/basic-authenticated"><i class="fa fa-file"></i> <span>Basic authenticated</span></a>
</li>
<li><a href="/test-acl/guest-only"><i class="fa fa-file"></i> <span>Guest Only</span></a>
</li>
<li><a href="/test-acl/open-to-all"><i class="fa fa-file"></i> <span>Open to all</span></a>
</li>
</ul>
</li>
</ul>
Any quick solutions to this? I like that it's keeping the icons...but the markup layout is not correct in my case.
Hi,
The new issue I have discovered is the fact that at the moment, the module package is not creating menu entries when a module is initiated. I have attached a screenshot so that you can see. The 'Members' Module is enabled and initialized. But it is not added on the Menu.
Please advice me if there is something I'm doing wrong and what I should change.
Thank you.
hi,
When install all components i have blank page.
All urls:
local.com/users
local.com/roles
etc returns 404. What is wrong?
I am using mint linux 17.2 and apache 2.4.7
Do we update the " List of settings" functionality under the admin>setting into dashboard with existing .env file so both the details are update.
Also show the sensitive variable name as per .env into dashboard.
Also add .env-*
environment support.
Thanks for making this starter kit available. I'm new to Lavarel so forgive me if I'm missing something obvious, but how does one change the root password as root without modifying line 122 of /app/User.php to something like the following?
// Protect the root user from edits.
if ('root' == $this->username && Auth::user()->id != $this->id) {
return false;
}
And if the root user record is opened up for potential changes of all data, this could lead to the root username being changed, which is used in places such as the above snippet. What am I missing please?
Per the doc, when enabled all guest or un-authenticated users will be redirected to the login page.
This is however not the case, and all pages result in 403 forbidden for guest users.
Edit: Actually getting 403 forbidden on all pages if I'm not logged in, regardless of whether walled garden is enabled.
Upon installation (and after all configuration), I am greeted with the following after trying to login with an AD account:
FatalErrorException in EloquentLDAPUserProvider.php line 219: Class '\App\Models\Group' not found
The comment from eloquent-ldap/config/config.php states:
| Name of model that represents a group or role. This is the model that
| will automatically be granted membership to based on the user's LDAP
| membership if the option 'assign_group' is enabled.
however, I cannot find an option named "assign_group" enabled.
Reading the documentation of eloquent-ldap, it clearly states:
For a concrete example of this package used in an active project, see sroutier/laravel-5.1-enterprise-starter-kit. Note that in that project this package is used in combination with Zizaco/entrust to provide role based authorization, therefore there is no group model, but instead a role model.
I am completely confused.
As the title says, when logging in with a particular LDAP (MS AD) account, I get the following error:
FatalErrorException in HasMemberOfTrait.php line 73: Call to a member function getGroups() on a non-object
I changed the .env
file:
LDAP_RECURSIVE_GROUPS=false
Then, when logging in again with that same ldap account, I get the following:
FatalErrorException in EloquentLDAPUserProvider.php line 536: Call to a memeber function getName() on a non-object
How to troubleshoot?
I'm unable to remove the rapyd demo routes. I uncommented the correct line in rapyd.php, but they're still being loaded from the routes.php in it's vendor dir, whenever I load the routes from the admin panel.
Im noticing a bunch of Integrity constraint violations - this one occurs when you try to create a role. Note user_id is missing.
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (enterprise
.role_user
, CONSTRAINT role_user_user_id_foreign
FOREIGN KEY (user_id
) REFERENCES users
(id
) ON DELETE CASCADE ON UPDATE CASCADE) (SQL: insert into role_user
(role_id
, user_id
) values (9, ))
I ran into this issue twice
first time I thought I solved it with:
touch .npmignore
in the project root then rerunning npm install
per the solution here: http://stackoverflow.com/questions/17990647/npm-install-errors-with-error-enoent-chmod
then I encountered another error (both on Ubuntu Server 14.04 and Linux Mint 17.1 Desktop) where it was looking for a "node" binary instead of a "nodejs" binary.
For that I had to:
sudo ln -s /usr/bin/nodejs /usr/bin/node
Perhaps these two steps should be noted in the documentation, to save others the time and research effort in solving this.
Is there is any way i can remove old loaded routes from the database when i try to load a new routes. I know it should be performed on method loadLaravelRoutes
in \App\Models\Route
class.
Dear Sebastian,
I was just wondering what is your choice of CRUD and Grids in general? And will one be eventually integrated in L51ESK?
I come from Yii2 framework and miss things like Gii code generator (module built-in Yii2) and kartik-v/yii2-grid extension
For a start, I've used Nayjest/Grids for a simple listing & export to csv/excel functionality, and dealing with a one-to-many relation was a breeze, but I'm now looking into complete CRUD grids solution such as:
LaravelPanel looks like it uses (forked-)rapyd for its CRUD functionality, so I guess the same could be accomplished with L51ESK + rapyd. Don't you think?
On a sidenote, I've also purchased and used jQuery DataTables Editor extensively in the past, but only in standalone/custom projects not specifically based on full-blown framework. But I've now also discovered DataTables Editor Interface to Laravel 5 which adds yet another option.
First of all, thanks for the awesome starter kit. I'm loving it!
I've found that when I update a users roles, the users password does not work on the next login. I think it's due to an empty 'password' attribute from the form being applied on the $user->update() method. I've added a Hash::check if/else in the UsersController@update to check if the password has changed or is blank. I might be be missing something, but thought this might be an issue that needs to be addressed.
Hi Sroutier,
I found some problem when running composer install :
Warnig : The lock file is not up to date with the latest changes in composer.json. You may be getting outdated dependencies. Run update to update them. Your requirements could not be resolved to an installable set of packages.
Problem 1
composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- The requested package yaap/theme dev-laravel-5.1 exists as yaap/theme[1.0.0, 1.0.x-dev, 1.1.0, 1.1.1, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 2.0, 2.1, 2.2.0, dev-develop, dev-master, v2.1.1] but these are rejected by your constraint.
Any ideas?
[PDOException]
SQLSTATE[HY000]: General error: 1215 Cannot add foreign key constraint
Fix: Change line 21, set permission_id nullable
old: $table->integer('permission_id')->unsigned()->default(0);
new: $table->unsignedInteger('permission_id')->nullable()->default(0);
Hi,
i added new email authentication for registration. means after user registered, he need to click a url with token in his email to enable the account.
But the problem is system keep kicking the url to login page. i use AuthController.
hello there,
why did the modal keep displaying the same content when i clicked the different button? In this example it's the delete button, when i click in the different column, the modal content is still displaying content from the last modal.
like this: i click the delete from user with ID 3->the modal displaying it's ID is 3->i closed the modal->i click user with ID 4->the modal still displaying it's ID is 3 instead of 4.
i tried to start over from your repository and i found a bunch update, but the problem is still the same.
ps: i'm really sorry for my poor english, and btw how do i get the update from your repository ? i already fork it and adding my own code
Hi,
I have installed a test app under http://localhost/l51esk and all the menu paths are being generated as if the app was running in http://localhost/ !
The solution I found, and I am not sure it's the best place to correct this issue, I'll let Sebastian confirm this :
in the file L51ESKSecuredMenuHandler.php function generateUrl(Menu $menu)
replace : return $url;
by return \Request::getBasePath() . $url;
This does the trick of course, all the hard coded paths in the blade templates should be corrected as well like in auth/login.blade.php
the lines :
Hello,
Trying to give a fair warning to all people listening: I intend to rename the project and change the repository URL to match. I will probably change to name early next week.
The name will be changed from "laravel-5.1-enterprise-starter-kit" to "laravel-enterprise-starter-kit". Essentially dropping the 5.1 version label from the project name.
I hope that this will not inconvenience too many people, but I think that this minor name change is an important step toward the growth and maintenance ahead.
If you forked your own copy of the project, you should not have anything to do as GitHub will update the reference to the originating project automatically, you will be able to continue working with your own repository just as before.
If you are getting your updates directly from this repository, all that should be required to do on your end is to update the git remote URL.
To prevent people from getting lost, I will create a new and separate project with the old name that will only contain a README file with instructions on to update your git configuration and a pointer to the original project at it's new location.
As usual, please let me know if you have any question, concerns or comments.
Cheers.
/S
If for example you click on the Audit
page, after it loads the Admin
menu group will be collapsed, I'd expect it to stay open.
As a temporary workaround, I changed $MENU_GROUP_START
to always include the active
class, but obviously that isn't ideal.
public $MENU_GROUP_START = "<li class='treeview active'><a href='@URL@'><i class='@ICON@'></i><span>@LABEL@</span><i class='fa fa-angle-left pull-right'></i></a><ul class='treeview-menu'>";
app/Handlers/L51ESKSecuredMenuHandler.php Line 37
Is there a plan to support also user-based permissions and not only role-based permissions?
1/2:
PDOException in Connection.php line 381: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (mytp
.routes
, CONSTRAINT routes_permission_id_foreign
FOREIGN KEY (permission_id
) REFERENCES permissions
(id
) ON DELETE SET NULL ON UPDATE CASCADE)
in Connection.php line 381
at PDOStatement->execute(array('faust', 'GET', 'faust', 'Closure', '2015-10-12 08:03:47', '2015-10-12 08:03:47')) in Connection.php line 381
at Connection->Illuminate\Database\{closure}(object(MySqlConnection), 'insert into `routes` (`name`, `method`, `path`, `action_name`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?)', array('faust', 'GET', 'faust', 'Closure', '2015-10-12 08:03:47', '2015-10-12 08:03:47')) in Connection.php line 629
2/2:
QueryException in Connection.php line 636: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (mytp
.routes
, CONSTRAINT routes_permission_id_foreign
FOREIGN KEY (permission_id
) REFERENCES permissions
(id
) ON DELETE SET NULL ON UPDATE CASCADE) (SQL: insert into routes
(name
, method
, path
, action_name
, updated_at
, created_at
) values (faust, GET, faust, Closure, 2015-10-12 08:03:47, 2015-10-12 08:03:47))
in Connection.php line 636
at Connection->runQueryCallback('insert into `routes` (`name`, `method`, `path`, `action_name`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?)', array('faust', 'GET', 'faust', 'Closure', '2015-10-12 08:03:47', '2015-10-12 08:03:47'), object(Closure)) in Connection.php line 596
at Connection->run('insert into `routes` (`name`, `method`, `path`, `action_name`, `updated_at`, `created_at`) values (?, ?, ?, ?, ?, ?)', array('faust', 'GET', 'faust', 'Closure', '2015-10-12 08:03:47', '2015-10-12 08:03:47'), object(Closure)) in Connection.php line 382
Clean installation:
git clone https://github.com/sroutier/laravel-5.1-enterprise-starter-kit.git l51esk
composer install
npm install
cp .env.example .env
edit .env and config/database.php (connect do PGSQL)
./artisan key:generate
chmod -R ugo+rw storage/
chmod -R ugo+rw bootstrap/cache/
./artisan migrate
./artisan db:seed
... first login root-Password1 and get :
go to dashboard :
at log-file get error:
.../storage/logs# cat ./laravel.log
ERROR: invalid input syntax for integer: "root" (SQL: select * from "menus" where "menus"."id" = root limit 1) at ...../vendor/laravel/framework/src/Illuminate/Database/Connection.php:651, PDOException(code: 22P02): SQLSTATE[22P02]: Invalid text representation: 7 ERROR: invalid input syntax for integer: "root" at .../vendor/laravel/framework/src/Illuminate/Database/Connection.php:321)"}
if change DB on mysql all fine work:
L51ESK handles all auth, Is there any functionality built in to handle things like:
As suggested by @sraffali in #56,
Add the Module Composer Support :
Check the cafeinated doc this will introduce two important functions:Module dependency requirements on our new modules => you can split big functionality in smaller independent modules while requiring that the other be installed to run the whole thing.
Package dependency required by the module itself and not by the rest, so the composer.json doesn't get cluttered by all those packages that belong to a module.
This work may require upgrading the entire package lesk-module to a more recent version of the original caffeinated/modules.
Dear Sebastian,
Just thought if you took a look at this it would be of some help, at least in terms of dynamic breadcrumbs, since it's already implemented. Why reinvent the entire wheel, right? :)
Hi all,
The app keeps loggin me out randomly on its own accord. Could you please suggest a way to go around this?
Thanks.
development.ERROR: No permission set for the requested route, path [acl-test/basic-authenticated], method [GET] and action name [App\Http\Controllers\TestController@acl_test_basic_authenticated], guest [], username [user1].
This is after I've merged upstream/master, composer dump-autoload
and php artisan migrate:refresh --seed
(both ProductionSeeder & DevelopmentSeeder have been seeded).
This is strange as, by default, I see that "user1" has role "Users", and the "Users" role in turn has the "Basic Authenticated" permission.
i.e. When viewing "user1" at /admin/users/2
and going to the "Permissions" tab, I see that "Basic Authenticated" has a check-mark under the "Effective" column but not under the "Assigned" column (which is expected as the permission is not directly assigned to the user but rather to the role that's assigned to the user).
What gives?
Hi,
This starter-kit is awesome, thanks.
I have created several users, but I don't find how they can change them self their password.
Is there any screen for that ? Or should I have to create it myself ?
Need MenuBuilder with new-tab option
Hello,
Just cloned and followed the instructions given in the readme. Managed to log in successfully. However, when trying to create a new user, I get this error:
mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
I am using wamp with php 5.6. I have tried everything but I don't understand what the problem could be. Why is it trying to send an email? I have set disabled lern by having it set as follows:
LERN.ENABLED=false
Any help?
Hi,
When I ran './artisan db:seed' I got the error:
[ErrorException] preg_match(): No ending delimiter '.' found
What should I do in this case, because there are a lot of regex parts in the project to check.
Thank you!
This gives me all users:
$users = $this->user->pushCriteria(new UsersWithRoles())->pushCriteria(new UsersByUsernamesAscending())->paginate(100);
how do I get users from Role named "authors"?
thanks
Hi,
according to the documentation: "A route assigned the permission open-to-all will be authorize for all users, authenticated or not."
However, upon testing, this seems to only work on the home page (home or backslash) and faust. It doesn't make a difference whether the route is defined within the "authorize" middleware route group or outside it.
This while keeping in mind issue #10 , for example, having made sure "acl-test/open-to-all" route is assigned the permission "open-to-all" from the admin interface. But I'm always being redirected to auth/login whenever I visit open-to-all route.
BR
Dear Sebastien,
Is it possible to easily implement an option to refresh/resync email field on user login?
I imagine this could be useful when LDAP users emails are being migrated to a new (sub-)domain and the admin needs to refresh the list of emails upon user logins. Or, in a case like mine, when one launches into production with default setting of email field (as 'userprincipalname') and later finds out it is getting wrong emails suffix and has to be changed to 'mail' for example, but this will only take effect to new first-time logins not pre-created users. I also do not have the luxury of deleting the old users as I already have a one-to-many relationship created with user associated data.
Kind Regards
In my case, I want to have a menu node that is using a route that takes an ID.
e.g.
movies/44/edit
Is there currently a way to manage this? Depending on the logged in user, the ID will be different. Or else I would have used the "URL" field of the menu item.
What for setPasswordAttribute in User Model?
Because user register can't relogin after register.
ErrorException in EloquentLDAPUserProvider.php line 167: Argument 1 passed to Sroutier\EloquentLDAP\Providers\EloquentLDAPUserProvider::validateCredentials() must be an instance of Illuminate\Contracts\Auth\Authenticatable
Standard install
Got this after attemping login.
Good luck with the laptop dude
Good morning,
1. Move all test and demo code to a module :
As I was testing around with modules, I thought it would be good to move all the test and demo stuff under a module which would bring the following benefits :
2. Add the Module Composer Support :
Check the cafeinated doc this will introduce two important functions:
3. Define guidelines for Module table names :
Regards,
S.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.