Deekshith

Deekshith

Member Since 10 Months Ago

Experience Points
1,480
Total
Experience

3,520 experience to go until the next level!

In case you were wondering, you earn Laracasts experience when you:

  • Complete a lesson — 100pts
  • Create a forum thread — 50pts
  • Reply to a thread — 10pts
  • Leave a reply that is liked — 50pts
  • Receive a "Best Reply" award — 500pts
Lessons Completed
3
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
1,480 XP
Jul
02
4 months ago
Activity icon

Started a new Conversation Auth Attempt With Or Condition

Hello, I have a login system where admin can login to his account and now i have created agent account who can login using same login route so i want to add or condition in my Auth attempt function which shows below,

Here role_id = 1 is admin and role_id = 4 is Agent, so i want to make this login for both admin and agent

$credentials=[ 'email' => $request->email, 'password' => $request->password, 'role_id' => 1, ];

i tried to change $credentials like below,

$credentials=[ 'email' => $request->email, 'password' => $request->password, 'role_id' => [1,2], ];

and

$credentials=[ 'email' => $request->email, 'password' => $request->password, 'role_id' => collect([1,2]), ];

if(Auth::attempt($credentials)){

  if (Auth::check() && Auth::user()->role == 1) {
    return redirect('/home');
}
else if (Auth::check() && Auth::user()->role == 4) {
    return redirect('/create-vendors');
}
else {
    return redirect('/home');
}

But no use. How can I allow both Agent and admin to get a login to account using the above code?

Jun
25
4 months ago
Activity icon

Replied to Regarding Video Integration

how about using JSONP Which dont show XMLHttpRequest?

Jun
24
4 months ago
Activity icon

Replied to Regarding Video Integration

@martinbean I did this. my question is suppose my logged in user URL is: https://www.example.com/embed-video/1010 then it is fine. but what if users copy the frame and paste it in website home page: https://www.example.com. it will work becuase vimeo trucate the paramter in url. I have used ajax and used post method to fetch iframe to not displaying in view page source. but they can find iframe code in the netwrok tab.

Activity icon

Replied to Regarding Video Integration

I have domain validation activated. but what if someone changes paste the iframe code in the same domain with nonrestricted URL in the same domain?

Activity icon

Replied to Regarding Video Integration

I am using vimeo pro account is there any option to do that?

Activity icon

Started a new Conversation Regarding Video Integration

Hi guys, I have Vimeo pro account and did all privacy settings to make the video available only for logged in users. what I am doing is when every user logged in to account I am loading the iframe which has domain privacy that means except my domain it will not run anywhere. but still, user can copy that iframe and paste it in the home page of the same domain and can easily watch that video. to prevent this I am trying to ajax post and appending response to id. but still, anyone can view in Network tab in inspect element. I want to hide this iframe response or encrypt. is there any way to do that in ajax jquery? Please reply

Activity icon

Started a new Conversation Regarding Video Iframe Security

Hi guys, I have Vimeo pro account and did all privacy settings to make the video available only for logged in users. what I am doing is when every user logged in to account I am loading the iframe which has domain privacy that means except my domain it will not run anywhere. but still, user can copy that iframe and paste it in the home page of the same domain and can easily watch that video. to prevent this I am trying to ajax post and appending response to id. but still, anyone can view in Network tab in inspect element. I want to hide this iframe response or encrypt. is there any way to do that in ajax jquery? Please reply

May
17
6 months ago
Activity icon

Replied to Undefined Variable: _ENV Error

@MUNAZZIL - This worked. Thank you

Activity icon

Replied to Undefined Variable: _ENV Error

I did but still the same error.

Activity icon

Replied to Undefined Variable: _ENV Error

@munazzil I have some error in controller code and earlier error was displaying in my screen but now for any type of 500 error, it is showing like above.

Activity icon

Started a new Conversation Undefined Variable: _ENV Error

Hi Guys, Whenever there is a syntax error, the error is not displaying in the website instead it is showing like below,

Whoops, looks like something went wrong. (1/1) ErrorException Undefined variable: _ENV

in PrettyPageHandler.php line 231 at HandleExceptions->handleError(8, 'Undefined variable: _ENV', '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php', 231, array('templateFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/views/layout.html.php', 'cssFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/css/whoops.base.css', 'zeptoFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/js/zepto.min.js', 'prettifyFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/js/prettify.min.js', 'clipboard' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/js/clipboard.min.js', 'jsFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/js/whoops.base.js', 'inspector' => object(Inspector), 'frames' => object(FrameCollection), 'code' => 'E_ERROR')) in PrettyPageHandler.php line 231

Any solution? please help me out.

Activity icon

Started a new Conversation Undefined Variable: _ENV Error

Hi Guys, Whenever there is a syntax error, the error is not displaying in the website instead it is showing like below,

Whoops, looks like something went wrong. (1/1) ErrorException Undefined variable: _ENV

in PrettyPageHandler.php line 231 at HandleExceptions->handleError(8, 'Undefined variable: _ENV', '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/PrettyPageHandler.php', 231, array('templateFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/views/layout.html.php', 'cssFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/css/whoops.base.css', 'zeptoFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/js/zepto.min.js', 'prettifyFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/js/prettify.min.js', 'clipboard' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/js/clipboard.min.js', 'jsFile' => '/home/insig179/public_html/insightsallindia/vendor/filp/whoops/src/Whoops/Handler/../Resources/js/whoops.base.js', 'inspector' => object(Inspector), 'frames' => object(FrameCollection), 'code' => 'E_ERROR')) in PrettyPageHandler.php line 231

Any solution? please help me out.