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
0
votes
1 answer

Very Slow Responses On Homestead

Versions: Lumen: 5.2 Vagrant: 1.8.1 Homestead: latest I have just installed Homestead and am attempting to use it for developing a Lumen application. The Lumen app is very fast on MAMP (as expected), however is extremely slow on Homestead. While…
Feek
  • 640
  • 6
  • 20
0
votes
1 answer

Combine count result to join in laravel

i want get something like list of news with number of comment article ------------- comment news1 ---------------- 10 news2 ---------------- 2 news3 ---------------- 13 news4 ---------------- 25 i know how to do it with raw sql but can't make it…
gondai yosuke
  • 599
  • 2
  • 5
  • 19
0
votes
1 answer

Laravel/Lumen queue:listen not working

I am able to queue up jobs in redis as I checked redis manually. I'm also aware that i need both predis and illuminate\redis "predis/predis": "^1.0", "illuminate/redis": "5.2.*" which i have included and…
azngunit81
  • 1,574
  • 2
  • 20
  • 38
0
votes
1 answer

Laravel populate foreign key data

Hi I am new to Laravel and trying to make a RESTFul api with Laravel Lumen I have installed the laravel and Lumen and I have the version as Laravel Framework version Lumen (5.2.6) (Laravel Components 5.2.*) Now I have in addition I have installed…
Abhik Chakraborty
  • 44,654
  • 6
  • 52
  • 63
0
votes
1 answer

Where to Place My Package in Lumen Framework

If I want to use some custom class in Lumen, where should I place them? The Laravel official document does not mention this in any of application structure, service container or package development. Actually I found the document quite confusing to…
Howard Liu
  • 93
  • 1
  • 11
0
votes
1 answer

Upload file error in lumen

I use laravelUploader package form this link for upload my files . when i use this package to send file in lumen with below code : $file = $this->uploader->file($request->file('file'))->push(storage_path('app')); return…
bitcodr
  • 1,395
  • 5
  • 21
  • 44
0
votes
1 answer

data not entered to database using Lumen (Laravel)

I am new to Laravel and Lumen framework. I am trying to create an API using Lumen framework.I wanted to enter the data to database. But the database is updated with id, date_created and date_updated. But the data I entered are not inserted there.…
Abdulla
  • 441
  • 1
  • 9
  • 21
0
votes
1 answer

GuardHelpers not working with customGuard

I have made the following custom guard:
P. Sopacua
  • 88
  • 8
0
votes
2 answers

Dingo API, use Database Query Builder

Does anyone know how can I use the Eloquent Query Builder with Dingo API ? Using Eloquent out of the box, it is working great : use Illuminate\Database\Capsule\Manager as Capsule; $capsule = new Capsule; $capsule->addConnection([ ...…
0
votes
1 answer

Lumen: just installed lumen and cannot get resources from public folder

I'm trying to start a small project with Lumen, and I have some knowledge on Laravel and Silex. I did the instalation, sent it to my server, and now I'm trying to serve a page, the HTML from the blade file is served, but the css is…
Maxinne
  • 1,693
  • 2
  • 23
  • 47
0
votes
1 answer

Lumen Collective-HTML Form

I have created a small test-project and wanted to use this: https://github.com/vluzrmos/collective-html I have done the same things step by step as in the manual. But I got this error: Whoops, looks like something went wrong. In the app.php I…
Micha93
  • 628
  • 1
  • 9
  • 22
0
votes
1 answer

Lumen - Class url does not exist

I am using Lumen to create a website, and while my controllers, routes, and views are well configured, I get an error when I try to use the redirect function in a controller. This is the error code : ReflectionException in Container.php line 736:…
hellimac
  • 251
  • 7
  • 13
-1
votes
1 answer

Can't use socialite on lumen 5.2

Here is my config socialite for lumen but I got error: Fatal error: Call to a member function set() on null Any idea? my AuthController namespace App\Http\Controllers; use Socialite; class AuthController extends Controller { public function…
shahrokh
  • 142
  • 2
  • 13
-1
votes
2 answers

Remove Laravel Lumen Public path Ubuntu Cloud Server

I'm trying to remove public path on lumen 5.2 on a ubuntu server 14.04 LTS Here is my .htaccess RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] I already allow mod_rewrite on my apache also added this…
-1
votes
1 answer

Use Mongo query in Lumen

I use jenssegers/laravel-mongodb package in my project. my project developed with Laravel Lumen micro framework, now how can i use blow mongo query with jenssegers/laravel-mongodb package in lumen db.orders.aggregate([ { '$match': { …
bitcodr
  • 1,395
  • 5
  • 21
  • 44