foram

foram

Member Since 3 Weeks Ago

Ahmedabad,Gujarat

Tech Lead at Ahmedabad,Gujarat

Experience Points 5,640
Experience Level 2

4,360 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 43
Lessons
Completed
Best Reply Awards 2
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

07 May
2 weeks ago

foram left a reply on Validate If The Combination Of Two Columns Is Unique

You have already duplicate key value in your table so please flush your table first and after that try again

foram left a reply on HTML Array Not Work With Table

Also define row number like below in HTML

name="product[1]"

foram left a reply on HTML Array Not Work With Table

You have not use foreach loop for

<table class="table table-bordered table-hover" id="tab_logic">
</table>

and that's why you got single result

foram left a reply on Unrelated Issue While Seeding

Send you model file

foram left a reply on The MorphOne Relation Always Return Null

if you define mophclass than you have to make morphclass map also

so please remove that and try again with scratch as per laravel guideline

foram left a reply on Curl Error

Its ca-certificates error on your server

https://stackoverflow.com/questions/3160909/how-do-i-deal-with-certificates-using-curl-while-trying-to-access-an-https-url

This error is related to a missing package: ca-certificates. Install it.

In Ubuntu Linux (and similar distro):

# apt-get install ca-certificates
In CygWin via Apt-Cyg

# apt-cyg install ca-certificates
In Arch Linux (Raspberry Pi)

# pacman -S ca-certificates

foram left a reply on How To Parse Json Data And Implement Fullcalendar Correctly ?

https://stackoverflow.com/questions/10210338/json-encode-escaping-forward-slashes


$url = 'http://www.example.com/';

echo json_encode($url), "\n";

echo json_encode($url, JSON_UNESCAPED_SLASHES), "\n";
Example Output:

"http:\/\/www.example.com\/"
"http://www.example.com/"

foram left a reply on Should I Use Javascript To Update Database Or Do A Form Button?

Its better if you post form your request on click on link and do some serverside validation for proper download request or not

by this way you can prvent XSS attacks from hackers and overload your sever.

foram left a reply on The PUT Method Is Not Supported For This Route. Supported Methods: GET, HEAD, POST.

https://laravel.com/docs/5.8/routing#form-method-spoofing

HTML forms do not support PUT, PATCH or DELETE actions. So, when defining PUT, PATCH or DELETE routes that are called from an HTML form, you will need to add a hidden _method field to the form. The value sent with the _method field will be used as the HTTP request method:

foram left a reply on Laravel 5.8 Default Apache Virtual Host Configuration

After make this changes please restart your apache server

foram left a reply on Laravel 5.8 Default Apache Virtual Host Configuration

Listen 84.242.117.60:9000

<VirtualHost 84.242.117.60:9000> DocumentRoot "D:\Projects\xampp\htdocs\laraveladmin\public" ServerName www.laraveladmin.com

foram left a reply on Laravel 5.8 Default Apache Virtual Host Configuration

APP_URL=84.242.117.60:9000/

you have missed http://

foram left a reply on Laravel 5.8 Default Apache Virtual Host Configuration

Did you make changes in .env file for

APP_URL=http://84.242.117.60:9000/

foram left a reply on Array To String Conversion Error

implode(',',$request->dispatch_item_qty)

this will provide you comma separated value so you have all array value in string.

rest you have to mange it as per your DB relation tables.

foram left a reply on Laravel 5.8 Default Apache Virtual Host Configuration

<VirtualHost *:80>

make changes to

<VirtualHost *:9000>

foram left a reply on Array To String Conversion Error

you should use

current($request->dispatch_item_qty)

current function will give you first value of array

foram left a reply on The MorphOne Relation Always Return Null

Did you define namespace App top of the file ?

foram left a reply on Array To String Conversion Error

$request->dispatch_item_qty is array and you have passed as value that's why it shows Array to string conversation error

use like that $request->dispatch_item_qty[3]

by this way you will get proper value and resolve your error

29 Apr
3 weeks ago

foram left a reply on Htmlspecialchars() Expects Parameter 1 To Be String, Object Given

You are using the variable name 'message' and it should be avoided.

->with([ "bodyMessage" => json_decode($this->data['message']) ]);

https://stackoverflow.com/questions/29755000/htmlentities-expects-parameter-1-to-be-string-object-given

foram left a reply on Htmlspecialchars() Expects Parameter 1 To Be String, Object Given

you should try with this

return $this->view('emails.test') ->from($address, $name) ->cc($address, $name) ->bcc($address, $name) ->replyTo($address, $name) ->subject($subject) ->with([ "message" => json_decode($this->data['message']) ]);

foram started a new conversation Use Lumen And Laravel In Single Project Structure

Any idea where we can use Lumen and laravel in single project structure where we can share uploaded files and models file commonly.

by this way we can improve APIs performance and common models of laravels.