ahmednawazkhan

ahmednawazkhan

Member Since 3 Years Ago

Experience Points 16,020
Experience Level 4

3,980 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 151
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.

05 Mar
5 months ago

ahmednawazkhan started a new conversation Custom Password Reset Api In Laravel 5.7

the password reset token emailed to email is different from one being saved to database. I have used the Hasher::make() and hash_hmac('sha256', $token, env('APP_KEY'))to hash that and then compare that token to database but invain. what should i do to transform emailed token to database token?

03 Mar
5 months ago

ahmednawazkhan left a reply on Change Check Of Validation Token (password Reset)

what about laravel 5.7. where token is some type of hashed value

08 Feb
6 months ago

ahmednawazkhan started a new conversation Automatic Resolution Error In Laravel Lumen

the error is


Argument 1 passed to App\Http\Controllers\PostsController::show() must be an instance of App\Post, string given
in PostsController.php line 10
at PostsController->show('2')

web.php is

$router->get('posts/{post}/show','[email protected]');

PostsController is

public function show(Post $post)
    {
        return $post;
    }

i know it is simple automatic resolution but i dont know what is the problem here

05 Feb
6 months ago
15 Aug
2 years ago

ahmednawazkhan left a reply on Bash Homestead Command Not Found

can someone explain what this is export PATH=~/.composer/vendor/bin:$PATH

19 Jul
2 years ago

ahmednawazkhan left a reply on Peer2Peer Chat Application In Laravel

i know signalling is used to initiate the session and that socket.io, pusher etc can be used. but how to really use them to transfer these information(session description) between two peers

10 Jul
2 years ago

ahmednawazkhan left a reply on Laravel 5/ 5.4 Paginator Is Not Working In Production Environment

I am using ubuntu 16.04 nginx server. The problem was that $_GET session variables were not being set properly. so what I did was inside /etc/nginx/sites-available/default and inside

location / 

block/ directive I changed try_files $uri $uri/ /index.php?$query_string; to try_files $uri $uri/ /index.php?$args;and it worked. Or see

https://stackoverflow.com/questions/27849149/laravel-5-nginx-server-config-issue-with-url-query-strings

or

https://stackoverflow.com/questions/44602067/laravel-5-5-4-paginator-is-not-working-in-nginx-production-environement

ahmednawazkhan started a new conversation NGINX Configuration For Wordpress Into Laravel Application

I am following https://www.digitalocean.com/community/tutorials/how-to-install-wordpress-with-lemp-on-ubuntu-16-04 link to install wordpress with little modification. I have a laravel application installed and configured there and i followed all steps for directory /var/www/laravel/public/blog/wordpress (directory I installed wordpress into). Now I need help with configuring /etc/nginx/sites-available/default . Uptill now I have just came up with

location /blog { 
            try_files $uri $uri/ /blog/wordpress/index.php?$args;
    }

but this is giving me 403 forbidden

09 Jul
2 years ago

ahmednawazkhan left a reply on Laravel 5 Sending Information Using Get Request

It was nginx configuration issue. Just corrected by replacing try_files $uri $uri/ /index.php?$query_string; to try_files $uri $uri/ /index.php?$args inside location / block of sites-available/default

ahmednawazkhan left a reply on Laravel 5 Sending Information Using Get Request

@Snapey Please help. I am finding no answers

08 Jul
2 years ago

ahmednawazkhan started a new conversation Laravel 5.4 And Wordpress Integration On Ubuntu Nginx

I am not finding a complete guide on how to integrate a wordpress to a already deployed laravel application for a begginer on ubuntu 14.04 nginx server (I am using digital ocean ) to create a blog with it using subdomain like example.com/blog

ahmednawazkhan left a reply on Laravel 5 Sending Information Using Get Request

@Snapey no redirects and i am not using any https proxy. just simply hosted my website on ubuntu nginx droplet in digital ocean

ahmednawazkhan left a reply on Laravel 5 Sending Information Using Get Request

@Snapey this is also not working( returns null ) which means it is not being set properly in production because i have checked through dieAnddump. So what now???

06 Jul
2 years ago

ahmednawazkhan started a new conversation Laravel 5 Sending Information Using Get Request

In my project I use {{ www.example.com/test?prevUrl=test/3/home }} this is working fine in development when inside my controller I do {{ $request->prevUrl }} but doesn't work in production(returns {{ null }} ). can someone help?

30 Jun
2 years ago

ahmednawazkhan left a reply on Socket.io & Redis

can u upload an example code please

17 Jun
2 years ago

ahmednawazkhan started a new conversation Laravel 5/ 5.4 Paginator Is Not Working In Production Environment

In my local environment i did ""$items = Model::paginate(10);"" and it worked. Then i pushed it to production and when i click on the pagination links it displays page 1 again and again. then i did ""dd($items)."" i found that the current Page property of ""length aware pagination"" is not changing when i change the address to ""/items?page=*."" How to make current page property change accordingly or there is some thing else? thanks in advance

20 May
2 years ago

ahmednawazkhan left a reply on Laravel Filters In Blade

@rein.vanleirsberghe can please explain this. I also got stucked in here

ahmednawazkhan left a reply on Check If Value Exists In Collection

can we do the same thing inside the blade?

25 Nov
2 years ago

ahmednawazkhan started a new conversation Laravel 5.3 Finding Correct Option Of 4 Options Of An Mcq

I have an ''MCQ'' saved in my database which has 4 ''options''. Each option has a ''answer'' boolean column to show whether an option is true or false. Now I have the ''MCQ'' object with its 4 ''options'' in my controller and I want to pick out that correct option which will be ''1'' if an option is true and ''0'' if that is false. So, without making any query how can i find the correct option object in my controller. my mcq table is Schema::create('mcqs', function (Blueprint $table) { $table->increments('id'); $table->string('body'); $table->timestamps(); });

and my option table is Schema::create('options', function (Blueprint $table) { $table->increments('id'); $table->integer('number')->unsigned(); $table->integer('mcq_id')->unsigned()->index(); $table->string('body'); $table->boolean('answer'); $table->timestamps(); });

09 Nov
2 years ago

ahmednawazkhan started a new conversation Laravel New Application Startup Gives Guzzlehttp Connect Exception

when i start a new laravel application ""laravel new project"" it gives error guzzlehttp/exception/connectexception curl error6: cannot resolve host :cabinet.laravel.com

31 Oct
2 years ago

ahmednawazkhan left a reply on Fetching Data From Multiple Tables In Laravel5

i think this will select all sharedpost for each post only. but i want the whole table to be considered with no relation of shared posts with posts. So that like the home page of the blog if a user shares a post first that shared post is shown and then the rest of stuff according to 'updated_at' only. I want both to be displayed and ordered

ahmednawazkhan started a new conversation Fetching Data From Multiple Tables In Laravel5

I have two tables ""posts"" and ""sharedposts"". ""sharedposts" table has columns "user_id", "updated_at" and "post_id" where as "posts" table has 'id', 'title' and 'body'. I know about the relations to link both tables. All i want to do is to display each post ordered by 'updated_at' from both the tables. Please help with both query builder and eloquent way. Thanku

19 Aug
3 years ago

ahmednawazkhan left a reply on Importing Database Table To Algolia

well i am not using scout. i have simple installation of algolia. i am working fine with search for a default index that algolia provides ""getstarted_actors"" . but now i want to import the database data using eloquent which is not working even if i am following the documentation

ahmednawazkhan left a reply on Laravel Search As Service Prerequisites

why am i not receiving any answers

ahmednawazkhan started a new conversation Importing Database Table To Algolia

At algolia website i found this. but it is not adding any index at the algolia website? please help

The following code adds search capabilities to your Contact model creating a Contact index:

use Illuminate\Database\Eloquent\Model; use AlgoliaSearch\Laravel\AlgoliaEloquentTrait;

class Contact extends Model { use AlgoliaEloquentTrait; }

ahmednawazkhan started a new conversation Laravel Search As Service Prerequisites

what are the prerequisites of the series ''SEARCH AS SERVICE'' because after watching the videos a number of things flied over my head. And also what are the ways to convert that search to live search

15 Aug
3 years ago

ahmednawazkhan started a new conversation Laravel Complex Text Content For Databases

there is nothing much about finding out what are the best ways to store complex text content with large number of dynamic headings, subheadings, bullet points and paragraphs to be stored in database. what are the best and easy ways. Need help......

11 Jul
3 years ago

ahmednawazkhan left a reply on How To (easily) Use A Bootstrap Template As A Laravel 5 Layout ?

i downloaded the clean-blog template from the same website. I don't know what to do with '''LESS'' folder inside it containing .less files

ahmednawazkhan left a reply on Wild Card Problems In Laravel

it is some thing to do with sass and less

ahmednawazkhan left a reply on Wild Card Problems In Laravel

i found it. it is the error with my (((link href="/css/clean-blog.min.css" rel="stylesheet"))) file. maybe i dont know how to use js nodes or something. the command prompt says ''''Unexpected EOF'..any help? if i remove this everything is displayed

ahmednawazkhan left a reply on Wild Card Problems In Laravel

my master.blade.php and post.blade.php are attached http://pastebin.com/mgf07tBx http://pastebin.com/Fzh2kbvw

10 Jul
3 years ago

ahmednawazkhan started a new conversation Wild Card Problems In Laravel

i have master.blade.php as one of layouts. when i load post.blade.php in browser without a wildcard --(url:localhost8000/post)-- it works and full required page is loaded but when i use a wild card --(localhost8000/post/1)-- the page is not completely loaded. only the footer is displayed. header and body appears white. fire bug shows the data is present which is passed through the wildcard

both the pages should appear as same because the difference is only of wildcard in url

my route file is

'''' Route::get('post','[email protected]'); Route::get('post/{id}','[email protected]'); '''' here is my PostsController

'''' class PostsController extends Controller{ public function index(){ return view('posts.post'); }

public function show(Post $post){ return view('posts.post',compact('post')); } } ''''