Buy your loved one the ultimate gift. Lifetime gift certificates are $100 off.

nageshbadgujar

Experience

190

0 Best Reply Awards

  • Member Since 1 Year Ago
  • 0 Lessons Completed
  • 0 Favorites

7th October, 2017

nageshbadgujar left a reply on Auth Is Not Returning User Information In My Package • 2 months ago

No, I am using 5.5. But I think we have to add "web" middleware in route group for custom packages.

nageshbadgujar left a reply on Auth Is Not Returning User Information In My Package • 2 months ago

Yes Snapey, By the way I missed the "web" middleware in my routes. It solved my problem.

Thanks for the help.

nageshbadgujar left a reply on Auth Is Not Returning User Information In My Package • 2 months ago

Yes, I have logged in.

nageshbadgujar started a new conversation Auth Is Not Returning User Information In My Package • 2 months ago

I am creating a package in laravel, but inside the controller, when I print Auth::user(), it does not prints user information.

I have created Auth using "php artisan make:auth" command, also use namespace for Auth. It does not show user login also.

18th January, 2017

nageshbadgujar left a reply on Sub Queries In Eloqeunt • 10 months ago

I think it will be like this,

GroupRecording::whereIn('id', function($query) { $query->selectRaw('MAX(id)') ->from('group_recordings') ->groupBy('time_span'); }) ->where('time_span', '>', $recording->time_span) ->get();

nageshbadgujar started a new conversation Sub Queries In Eloqeunt • 10 months ago

I have a query in MySQL

SELECT * FROM group_recordings WHERE id IN ( SELECT MAX(id) FROM group_recordings GROUP BY time_span )

there is a sub-query in "IN" operator, I want to convert this query in laravel eloquent, I have GroupRecording Model

28th July, 2016

nageshbadgujar started a new conversation With Callback Doesn't Selecting Columns • 1 year ago

i have eloquent relations with 2 models, namely "user" and "subject" but i cant select the particular columns from user model, following is my query, return TeacherTimetable::with(['user' => function($query) { $query->addSelect('users.name'); }]) ->with('subject') ->leftJoin('working_days', 'teacher_timetable.day', '=', 'working_days.id') ->select('teacher_timetable.*', 'working_days.name','users.name as username') ->where($where) ->orderBy('day', 'asc') ->orderBy('start_time', 'asc') ->get();

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.