Laravel website user accounts creation and integration with phpbb3 forum
I am intergration phpbb3 to my existing laravel website. My requirement is to create user account in phpbb3 forum when user creates account on my existing website.... When I include the phpbb3 function file in my laravel add user method it says
Cannot redeclare redirect() (previously declared in D:\xampp\htdocs\project\vendor\laravel\framework\src\Illuminate\Foundation\helpers.php:692)
Related
I'm using Laravel Nova to make a collaborative Wiki for songs. I would like an unauthenticated user be able to see the songs, but not collaborate. He would be able to collaborate only after registering a new account.
I tried to comment the Laravel\Nova\Http\Middleware\Authenticate middleware, in file 'web' middleware in config/nova.php.
Now, it still works for my superAdmin, and my simple user, but for the unauthenticated user, it can reach nova dashboard without login, but there is no more items in left menus. The only way to make them appear is to remove the custom policies I have defined for my resources.
Why is it happening, and what should I do to
I have requirement of user login in frontend and also i need to make admin panel in laravel, i have create custom user table for frontend user because its have multiple other fields, in this case if i use laravel php artisan make:auth then it will create laravel login that i can redirect to different route(different admin folder in views) but if i use laravel default login and add frontend user custom fields in db table then how can i use this direction? My main question is, i need to use laravel make:auth db table for front end user and administrator user with different role or i need to make two different tables for both admin and frontuser login?
You can use the package below to do this.
The following package contains the Role&Permission - registration and login.
If your problem is not resolved, I can help you more.
I am new to laravel and currently i am learning and experimenting on my old php based mini-project conecpt ,i have successfully created the user registration and user login with some features for users,but i am confused how do i create a admin module and provide admin privilege's along with one more sub module (moderator).
I have completed website module,it works fine but i am confused how do i give the following functionalities.
how do i add admin module
admin can access user information
only admin can add moderator
any suggestions would be helpful,
Thank you.
I think what you are trying to do is make some routes only accessible by an admin or moderator?
Make a custom middleware so only if a user has a sufficient role level they can acces the given route.
https://laravel.com/docs/5.6/middleware#defining-middleware
You could have a moderator middleware that checks if a user has role 1 or higher, and a admin middleware that checks if a user has role 2.
i hope this is somewhat what you are searching for.
I am new in laravel. I have installed laravel 5.4. I have installed laravel inbuild auth. but I want to create own login & registration with two user type . one is customer and another is for admin with different functionalities for two user types. using custom controller,model route without using auth.
In my laravel project, I want some admin and user role. I want to make user login in different routes after login. And also for admin also. How should I do it?
You should first make 3 table in your database; user, role and user_role. user_role table has many to many relationship. Then you will make a middleware that checks your role checks when login. In your route, you use that middleware in login's post.
See details about middle ware in laravel 5.3 documentation.
https://www.laravel.com/docs/5.3/middleware
You can try laravel 5.3 boilerplate. It comes with a full featured access control system out of the box with an easy to learn API and is built on a Twitter Bootstrap foundation with a front and backend architecture.