Questions tagged [userfrosting]

UserFrosting is a user management system for PHP that works out of the box and builds on top of modern components and standards.

UserFrosting is a user management framework and fully-extendable application for PHP.

It is built on top of the Slim micro-framework, the Twig templating engine, and Laravel's Eloquent ORM.

Features

  • User registration and login
  • Self-serve password reset and account email verification
  • User account settings
  • Groups and roles
  • Fine-grained access control with access conditions
  • Admin user creation and management
  • Sleek, responsive frontend interface

Primary Objectives

  • Create a fully-functioning user management script that can be set up in just a few minutes
  • Make it easy for users to quickly adapt the code for their needs
  • Introduce novice developers to best practices such as separation of concerns and DRY programming
  • Introduce novice developers to modern constructs such as front-end controllers, RESTful URLs, namespacing, and object-oriented modeling
  • Build on existing, widely used server- and client-side components
  • Clean, consistent, and well-documented code
75 questions
1
vote
0 answers

UserFrosting route to localhost

I'm just getting into UserFrosting and now wanted to create a route that leads to the localhost of my system through the standard login page but I just can't figure out how that could work with UserFrosting's routing approach or if it even is…
1
vote
0 answers

How to install NPM dependencies behind proxy even after I have made recommended changes in NPM CONFIG following other SO answers?

I am using: 64 bit Windows 10 platform composer 1.10.10 (globally installed) node ~12.14 NPM ~6.13 XAMPP with PHP 7.2.33 I am working with a project that will be using the PHP package named "User Frosting v4.4.4" From the command line of this…
1
vote
1 answer

PHP Fatal Error with Userfrosting now server always shows Error 500

I was managing my server and after a composer update I receive this message: PHP Fatal error: Uncaught TypeError: Argument 1 passed to UserFrosting\System\Facade::setFacadeContainer() must be an instance of Interop\Container\ContainerInterface,…
1
vote
2 answers

Create a Record in Eloquent database if it's not existing when selecting

I created a Model and so on, and now I get my data with that code: $all_keys = MemberAux::select('apikey','apisecret')->where('user_id', $user_id)->first(); The table has basically just an auto-increment id, a user_id, and two data fields. I…
Standard
  • 1,450
  • 17
  • 35
1
vote
0 answers

Get Userfrosting / Slim to work with Controller Class

I'm completly new to the MVC pattern and I find it really hard to understand without programming, so I set up the Userfrosting Framework which is based on Slim. I followed this tutorial and I could see the default starting page, log in, etc. Now I…
Standard
  • 1,450
  • 17
  • 35
1
vote
1 answer

How to refresh UserFrosting UFTable without updating filters

Our UserFrosting (4.2) application has a dashboard page which shows recent data using a ufTable object. We would like to automatically refresh the table contents every 60 seconds. The idea is that this table will be displayed on a monitor in the…
Elly Post
  • 336
  • 3
  • 12
1
vote
1 answer

UserFrosting Nginx asset-raw 404

I am using Nginx and I am not using Apache. So I need a piece of Nginx code to solve the loading problem of the front-end static resources. My problem is similar to this, but I am not Apache. I didn't find what I wanted in the 'webserver-configs'…
张成林
  • 11
  • 3
1
vote
1 answer

How to properly return a .xls Excel file from a UserFrosting controller and process it in Angular 2+?

I am having problem receiving a Blob of Excel file using Angular 2+'s HttpClient get() method from a UserFrosting API. Here is the code for the Userfrosting API: public function apiGetAPExport(Request $request, Response $response, $args) { …
1
vote
1 answer

Userfrosting installation issues

I did installation of Userfrosting as per the steps - no errors and all went well (using ubuntu 16 command line). When i loaded the site in browser, page did came but no CSS applied. Browser console said - failed to load resource. I checked and…
1
vote
1 answer

Laravel Eloquent join 2 tables together

I want to join 2 tables together using laravel eloquent. I could easily do this in mysql but have no idea using this. I have a model called device.php this contains the following method: public function wifi_client_connection(){ return…
Luke Rayner
  • 391
  • 6
  • 20
1
vote
0 answers

Want to establish relationship in USER and CUSTOMER table

Need some help. We have installed and working on UserFrosting. In this we have 2 tables one for USER and another for CUSTOMER. So the thing that we want to achieve, want to provide a option from which we can assign a customer in USER. For this we…
Ankur Singh
  • 93
  • 3
  • 12
1
vote
2 answers

RESTful API with Userfrosting

I'm using UserFrosting to manage users with PHP, in my API and I want to use the login function in controller with POST method. When i call the login function it return me as response The CSRF code was invalid or not provided. I still cannot get…
M. Hanafi
  • 66
  • 1
  • 11
1
vote
1 answer

The proper way to skip the dashboard for non-master users in a User Frosting site

I want any user who isn't the master user to be redirected to a separate page at /profiles. I've achieved this by editing the admin sprinkle, adding this simple statement to the pageDashboard function in AdminController.php: …
Jonny Perl
  • 133
  • 6
1
vote
1 answer

Unable to make index page secure and redirect to login page

I am using User Frosting V4. I learned about the routing concept. Now I wanted to make my index page a secure page - which means only logged in users should be able to access the page. If user is not logged in, he should be redirected to Sign In…
Varun Verma
  • 542
  • 4
  • 17
1
vote
1 answer

issue with Userfrosting & Composer - no matching packages

Just working my way through the Userfrosting 4 tutorial. The basic app is up and running and am now creating the first sprinkle under "Your First UserFrosting Site". On running composer update I get the following: Loading composer repositories…
Christian Mayne
  • 1,709
  • 7
  • 26
  • 42