Questions tagged [lumen-5.2]

Lumen 5.2 uses the 5.2 family of Laravel components, as well as introduces some significant changes to Lumen's underlying philosophy and purpose. It has been released on 7th January 2016. Use it in addition to the [tag:lumen] tag in questions specific to Lumen 5.2.

Only Stateless APIs

Lumen 5.2 represents a shift on slimming Lumen to focus solely on serving stateless, JSON APIs. As such, sessions and views are no longer included with the framework. If you need access to these features, you should use the full Laravel framework. Upgrading your Lumen application to the full Laravel framework mainly involves copying your routes and classes over into a fresh installation of Laravel. Since Laravel and Lumen share many of the same components, your classes should not require any modification.

Authentication

Because sessions are no longer included with Lumen, authentication must be done statelessly using API tokens or headers. You have complete control over the authentication process in the new AuthServiceProvider.

Testing Helpers

Since sessions are no longer included with Lumen, all of the form interaction testing helpers have been removed. The testing helpers for JSON APIs remain.

From Lumen 5.2 Release Notes

92 questions
1
vote
1 answer

Lumen 5.2 authentication through jwt

I am newbie to Lumen, i tried to authenticate my users through an access token, i followed all steps in the following blog JWT with Lumen in getting the token (login) step i always get the following error: BindingResolutionException in…
user983195
  • 179
  • 1
  • 2
  • 8
1
vote
1 answer

user login auth in lumen

i tried to do auth as we usually do in laravel5 but it is showing me following error: ErrorException in AuthManager.php line 152: Undefined index: provider after that i tried following link Authentication: index not found: provider then got…
1
vote
1 answer

Lumen FatalErrorException in RedirectResponse.php line 75: Call to a member function flashInput() on null

Hi I got this errors in Lumen FatalErrorException in RedirectResponse.php line 75: Call to a member function flashInput() on null in RedirectResponse.php line 75 at Application->handleShutdown() in RegistersExceptionHandlers.php line 55 at…
Micha93
  • 628
  • 1
  • 9
  • 22
1
vote
1 answer

Lumen -> Error on line 54 - require(): Failed opening required

I install a fresh copy of Lumen as Heroku app. Also I implemented the packange Dingo into it: https://github.com/dingo/api/ but when I try to load everything server return me this error: 2016-02-14T11:07:45.657820+00:00 app[web.1]: [14-Feb-2016…
user3914418
1
vote
0 answers

Capture an url ending with a slash with Lumen's router

I have a Lumen project (Lumen 5.2) and I need to do two different things for two identical urls except for an ending slash '/'. For example: http://example.com/some/path --> Show a resource named 'path' http://example.com/some/path/ --> List the…
Andrea
  • 15,900
  • 18
  • 65
  • 84
1
vote
2 answers

How to get routes and namespace in Lumen 5.2?

Lumen 5.2 has not been officially released yet, but as you can see in the GitHub repository the methods app()->getRoutes() and app()->getNamespace() will be no longer available. Are there any other ways to get the routes and the namespace in Lumen…
Koga
  • 555
  • 1
  • 5
  • 18
0
votes
1 answer

PHP Fatal error: Can't use method return value in write context in Lumen 5.2

I got error when I try to run the following code Error I am getting. Fatal error: Can't use method return value in write context in Lumen 5.2. In My Route : $app->post('oauth/access_token', function(Request $request) { …
Karthik
  • 5,589
  • 18
  • 46
  • 78
0
votes
0 answers

Lumen Login tutorial for web app no API?

I'm using lumen to make a website. I choose it because it has been told that lumen is a stunningly fast php micro framework. I need login guide. I have created login form and received data, and validated them. Now I need to check user credinals and…
Pradeep Sapkota
  • 2,041
  • 1
  • 16
  • 30
0
votes
2 answers

Seeing only the app version with Lumen POST API call

I am new to Lumen. I started using Lumen on MAC OS and running it inside a docker container. The app service in the dockerfile is as follows: app: build: context: ./ dockerfile: app.dockerfile working_dir: /var/www volumes: -…
deGee
  • 781
  • 1
  • 16
  • 34
0
votes
0 answers

SMTP Mail Trigger is not working in lumen

I am trying to do a mail trigger using smtp credentials but it shows Connection could not be established with host email-smtp.us-east-1.amazonaws.com.php_network_getaddresses: getaddrinfo failed: Name or service not known #0.
0
votes
1 answer

Ubuntu Screen command does not recognize Lumen Queue command

I am in a bit of a situation where I need to manually restart queues on linux/ubuntu based box and the proper approach I was told to follow is to use the screen command line application. I am on Ubuntu 14.X and when I do an -ls command I can…
scruffycoder86
  • 527
  • 1
  • 5
  • 24
0
votes
3 answers

Lumen error illuminate/support/Arr.php on line 145

In my local development environment its works fine, but when i deploy the lumen(5.2) project in server and when it's try to execute this line app('db')->select($sql, array($email)); then it's throw this exception protected 'message' => string…
0
votes
2 answers

Lumen: How to delete a record from DB?

Using Lumen, I'm displaying "Tickets". Here's my Tickets.blade.php: @foreach($tickets as $ticket)

{{ $ticket->id }}

{{ $ticket->content }}

LatentDenis
  • 2,839
  • 12
  • 48
  • 99
0
votes
0 answers

How to create multi tenant application in Lumen?

I use Lumen and mongodb and i want to create a multi tenant application with Lumen by separate database , subDomain and alias domain for each tenant Can you friend give me a solution how can i create a multi tenant application in Lumen? Notice: this…
bitcodr
  • 1,395
  • 5
  • 21
  • 44
0
votes
1 answer

Lumen + ReactJS routing. Allocate path

I have a Lumen application which frontends uses ReactJS and on backend Lumen acts as a rest-api. With ReactJS I use react-router and when I refresh a react route than Lumen tries to find it's own. $app->get('client', 'ApiController@index'); is the…
fefe
  • 8,755
  • 27
  • 104
  • 180