Questions tagged [lumen-5.4]

Lumen is a micro-framework built on top of Laravel's Illuminate components. Use it in addition to the [tag:lumen] tag in questions specific to Lumen 5.4.

Lumen is a micro-framework that is primarily used to develop stateless APIs. It is built on top of Laravel's Illuminate components. Lumen 5.4 uses the 5.4 family of Laravel's Illuminate components.

It was released on 24th January 2017.

49 questions
0
votes
1 answer

Lumen move data of one db table to another db table

I am new to Lumen and Laravel as well. I want to copy the table row from my Post table from Db.post and move the data to Table state in DB.state. Once that data is moved to state table then delete the data from the Post table (optional). I am trying…
Pushpendra Pal
  • 115
  • 1
  • 14
0
votes
1 answer

Lumen Model Static Boot Method Not Working?

I am using lumen 5.6 and implementing global scopes for query builder and using the boot method to call the scope class. Can someone have an idea why protected static function boot() not working in lumen 5.6 Below is my code?
Hassan Raza
  • 671
  • 10
  • 27
0
votes
1 answer

Laravel Model Override Where Clause?

I am working on an existing laravel application I have many queries all queries are written in laravel query builder now I want to add another where clause site_id (column) to filter out the records throughout the application. I don't want to go…
Hassan Raza
  • 671
  • 10
  • 27
0
votes
1 answer

Can't install lumen in shared hosting

I am trying to install latest lumen in my shared hosting. I have created a folder named lumen in public_html and placed all the files in that folder. When I browse the url, for example: https://example.com/lumen it gives me 500 error code. The same…
Tushar Monirul
  • 4,944
  • 9
  • 39
  • 49
0
votes
0 answers

Lumen 5.6.4 get post route throwing MethodNotAllowedHttpException

whenever i try to access my url for a post in Lumen through the browser or postman i get the below error Whoops, looks like something went wrong. MethodNotAllowedHttpException in RoutesRequests.php at…
Mike
  • 17
  • 7
0
votes
1 answer

Dependency Injection the right way in Php - Laravel

I have a log class as below and I would like to inject below class to my controller and make a log: Log.php
Murlidhar Fichadia
  • 2,589
  • 6
  • 43
  • 93
0
votes
1 answer

Upgrading Lumen from 5.3 to 5.4 breaks routing - requires additional prefix

I am following the upgrade guide to get a Lumen app onto the latest version. The step up to 5.4 breaks routing in the following way. There is a route at /oauth/test. It now results in a 404 (was fine on 5.3): http://testcase.local/oauth/test It…
bcmcfc
  • 25,966
  • 29
  • 109
  • 181
0
votes
1 answer

Select Only False Data from Database using lumen

I am new to coding, I'm trying to build an API using lumen. Now I have a problem, I cannot find out the solution. here is my code. $data = Speech::select('select * from speeches where is_requested = 0'); return response()->json(['status'=>…
0
votes
2 answers

The Rest API not working in postman when requested by url

I have start server by this cmd in the console, and it is working fine php -S localhost:8000 -t public When i call the API in postman for the lumen like this: localhost:8000/GitHub/twinfield/public/index.php/user The API work for insert but when i…
Anand Pandey
  • 2,025
  • 3
  • 20
  • 39
0
votes
1 answer

Lumen 5.5 Session store not set on request

I use vue-authenticate (https://github.com/dgrubelic/vue-authenticate) to create two kinds of connection on our web service, the first method is the connection to his account, the second method is the addition of account when connected. I use Lumen…
pirmax
  • 2,054
  • 8
  • 36
  • 69
0
votes
2 answers

MethodNotAllowedHttpException (lumen) while making request with axios

Created a route for inserting todo in lumen , its working perfectly using postman but in my react application request sending with axios , it getting error this.apiUrl = 'http://lumenback.dev/createTodo'; axios.post(this.apiUrl, { todo:…
Rathilesh C
  • 131
  • 2
  • 14
0
votes
0 answers

method post/get/delete/put not found on phpstorm using lumen

I already tried adding this composer require barryvdh/laravel-ide-helper. then I install the laravel plugin using the plugin on the ide. next I add this to my composer.json "post-update-cmd": [ "php artisan clear-compiled", …
poliam
  • 67
  • 1
  • 1
  • 6
0
votes
1 answer

Laravel/Lumen API with Web and Mobile consumers

I've been searching for an answer to this during hours and I cannot make a decision that makes sense to me. Basically, I need to create a system that will have users, each user will be able to add multiple "profiles" and on each profile, they will…
TJ is too short
  • 827
  • 3
  • 15
  • 35
0
votes
1 answer

Problems with join ERROR: 1054

I tried to use a join, with an array given as a condition: $task = Task::join('oc_groups', function($join) use ($filter) { foreach($filter['groups']['data'] as $key => $value) { $join->on('oc_groups.id', $value); } }); But I get…
yfain
  • 509
  • 7
  • 23
0
votes
2 answers

Laravel - Collection with relations take a lot of time

We are developing an API with LUMEN. Today we had a confused problem with getting the collection of our "TimeLog"-model. We just wanted to get all time logs with additional informationen from the board model and task model. In one row of time log we…
yfain
  • 509
  • 7
  • 23