akashpatel

akashpatel

Member Since 1 Year Ago

Experience Points
18,590
Total
Experience

1,410 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
178
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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 4
18,590 XP
May
31
21 hours ago
Activity icon

Commented on The Console Component

Hello, @all

Source code of this episode

https://github.com/erakashpatel/Text-Speak-demo

Thanks Akash Patel

Activity icon

Commented on The Console Component

Hello,

I did it as per video and understand it.but just minor mistake with my code. its give me

'say' is not recognized as an internal or external command,
operable program or batch file.

can someone be help me?

Thanks

May
25
6 days ago
Activity icon

Replied to How Do I Open A New Tab With My Pdf In My Table

@nikankad

I think if you submit the form and then pdf is created then in form tag you need to pass

target="_blank"

and pdf download function you need to pass

$pdf = PDF::loadView('pages.report.monthlystatement', $data);
$pdf->save(public_path().'/pdfname.pdf',$pdf);
May
23
1 week ago
Activity icon

Replied to 419 CSRF Token Unknow Status Handle

@bugsysha Sorry for the delay...

I changed my flow so now its shortcut. Thank you for the suggest @bugsysha and others.

Appreciate it.

Thanks

Apr
30
1 month ago
Activity icon

Replied to 419 CSRF Token Unknow Status Handle

@bugsysha

yup, I tried it but it's not working before it 419 is fire.

Activity icon

Replied to 419 CSRF Token Unknow Status Handle

But how can I got response code in ajax response? I seen response tab and it's just message :''

Activity icon

Replied to 419 CSRF Token Unknow Status Handle

@gzai its in my local so full control of the folder.

Activity icon

Replied to 419 CSRF Token Unknow Status Handle

Status Code: 419 unknown status

as per the above screenshot.

Activity icon

Replied to 419 CSRF Token Unknow Status Handle

@bugsysha

{
    "message": ""
}

like this ..

Activity icon

Replied to 419 CSRF Token Unknow Status Handle

@bugsysha

my request is :

Request Method: POST
Status Code: 419 unknown status
Remote Address: 54.188.16.41:443
Referrer Policy: no-referrer-when-downgrade
Cache-Control: no-cache, private
Connection: keep-alive
Content-Type: application/json
Date: Thu, 30 Apr 2020 11:59:43 GMT
Server: nginx
Set-Cookie: laravel_session=eyJpdiI6IlRHNkNEWTVqaWV6RHdmdDdMb3FPMEE9PSIsInZhbHVlIjoidzBNMjFuaFJuOFA0eVRqMTkyK0d6K3NtVUR2RUNcL1YzUmlreUdVakFuNEtlK0tTanpQaDlkN25JdEdtaDNQNDUiLCJtYWMiOiIzMWEyZWI0OWZkZjUxMzI2MGU3ZDhjMjkzMjk4NGYyYjYzOWJjZDY1ZTQzZjYyZjc4YWEzMGMxNDk4M2M0M2ZkIn0%3D; path=/; httponly
Transfer-Encoding: chunked

Request header :

Accept: */*
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9,da;q=0.8,de;q=0.7
Connection: keep-alive
Content-Length: 68
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Cookie: cenable=yes; _ga=GA1.2.388989434.1588235149; _gid=GA1.2.1931136376.1588235149; mousestats_vi=7bd00c2e897e47da7621; _uetsid=_uet3d73bd44-9d52-1c56-67a2-da3639f3499a; mousestats_si=2a8992f7156d167fea0d; XSRF-TOKEN=eyJpdiI6IkRnbkNxT1oxaUppTWpaY3VJTDY3OUE9PSIsInZhbHVlIjoiRnBFS1NuQ1haR2U3b2pKUkQ2WjVWczdsS21ma3FDT1FMQVA5UmhvYmgzeHFLRXZwXC9nSVdEeFNkVTBzXC9jWkJHIiwibWFjIjoiMDg2NmZhODY4ZTE0ZDFlOGM2ZDMzN2JiZGNlOGM0M2Y1NGViODAzZTM3YTAwZGNiYTU2ZWM4MjY4MmIwYWNlOSJ9; laravel_session=eyJpdiI6IkYwZDJIWXJrSmhXckdaNmxYQ0Via1E9PSIsInZhbHVlIjoiNVBJTjZQeGZqUWl0QmpONDQzOFUrSktSczlWZmtJNUFwNytNNGdkYnZwem9LcVRrbFFaQ0NhY2NxS0hnWFZzZyIsIm1hYyI6IjVhNGMxZDMxNmFkZTkyMDcxZGMwMGI2YjgwOTFmNzgzNjVlZWUwMzYwOGJlMzhkZjcwZDZkZDQxM2NiM2I1NmEifQ%3D%3D
Host:
Origin: 
Referer: 
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36
X-CSRF-TOKEN: J5ojB2j8Mamuk6o2Hq96n0TVEZGyE4paWa8e4gaZ
X-Requested-With: XMLHttpRequest

Response is (given error due to 419):

{message: "", exception: "Symfony\Component\HttpKernel\Exception\HttpException",…}
exception: "Symfony\Component\HttpKernel\Exception\HttpException"
file: "/vendor/laravel/framework/src/Illuminate/Foundation/Exceptions/Handler.php"
line: 203
message: ""

This is my ajax request look like. may be help you to understand.

Activity icon

Replied to 419 CSRF Token Unknow Status Handle

@bugsysha yup you are right.

but when I go for a response check from the backend before 419 comes. that's the problem.

:(

Activity icon

Replied to 419 CSRF Token Unknow Status Handle

yup you are right. but how to user know need to page refresh? and that's why i need to handle it.

Activity icon

Started a new Conversation 419 CSRF Token Unknow Status Handle

Hello,

I have a one-page web site with Laravel latest with the step of forms.

Now each stepwise ajax request is call and get the data from Controllers.

But some time 419 is comes due to laravel session is expired. So at that moment how can i handle the 419 unknow status error.

I already pass : CSRF token in meta tag

<meta name="csrf-token" content="{{ csrf_token() }}" />

AND while Ajax request :

$.ajaxSetup({
      headers: {
            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
        }
    });

Problem is that how can I told the user to you need to page refresh once 419 is come in ajax post request. i mean how to handle it ? is there any idea?

I tried from the last 3 days to fix it.

Thanks in advance.

Akash Patel

Apr
29
1 month ago
Apr
27
1 month ago
Activity icon

Started a new Conversation Laravel Validation Depand On Another Selectbox.

Hello, All

MY code :

<select class="form-control" id="debitoption" name="debitoption">
	<option value="">Select Debit Option</option>
	<option value="5">Other Debit</option>
	<option value="6">Refund</option>
	<option value="7">Chargeback</option>
	<option value="9">Transfer From</option>
</select>

Now when i select Refund then it will open

<select class="form-control" id="transationdropdown" name="transationdropdown">
<option value="">Transaction BusinessList</option>
</select>

AND When i click on Transfer From then it will open

<select class="form-control" id="tran_to" name="tran_to" >
<option value="">Select Transaction Business</option>
</select>

Now on submit how can i check transationdropdown , tran_to validation?

Is there any idea regrading it?

Thanks Akash Patel