foram

foram

Member Since 3 Months Ago

Ahmedabad,Gujarat

Tech Lead at Ahmedabad,Gujarat

Experience Points 5,670
Experience Level 2

4,330 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-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.

13 Jun
2 months ago

foram left a reply on Pass Two Parameters To Policy Function.

you have set Tenant $tenant means Tenant object and you are passing only tenant_id so

please make accordingly changes

foram left a reply on Function Update Doens't Work

you have missed model in below

$this->getById($id)->update($inputs);

correct is $this->model->getById($id)->update($inputs);

07 May
3 months 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 The PUT Method Is Not Supported For This Route. Supported Methods: GET, HEAD, POST.

@muazzamazaz You have set method as POST

but pass PUT as below in your form

 <input type="hidden" name="_method" value="PUT">

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:

<form action="/foo/bar" method="POST">
    <input type="hidden" name="_method" value="PUT">
    <input type="hidden" name="_token" value="{{ csrf_token() }}">
</form>

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://

Also you have to add listen 9000 port on apche config

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 months 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.