Farshad

Farshad

Member Since 2 Years Ago

Experience Points 380
Experience Level 1

4,620 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 1
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.

26 Jun
3 weeks ago

Farshad left a reply on Config Laravel Installation On Ubuntu

at last I'm adding

alias laravel="~/.config/composer/vendor/bin/laravel"

to the .bashrc of my root home directory and it work

Farshad left a reply on Config Laravel Installation On Ubuntu

@TYKUS - I use this at first and install laravel globally but the command laravel new blog still not working and I get this error

Farshad started a new conversation Config Laravel Installation On Ubuntu

every time I need to install laravel need to use composer create-project --prefer-dist laravel/laravel blog

but on my ubuntu system config the composer and laravel and like to do this with laravel new blog command How I should achieve that?

05 May
2 months ago

Farshad left a reply on Manage Patch Routes

@NAKOV - it doesn't make any different to use this /users/{id}/name. I want not use action in the url or find way to manage this in the controller or maybe laravel suggest one way for manage that

Farshad started a new conversation Manage Patch Routes

I have some route like below for example

Route::patch('/users/{id}/update-name', '[email protected]_name')
Route::patch('/users/{id}/update-password', '[email protected]_password')

I need to find is there any good structure for manage Route like this to stop write action in the url

05 Jul
2 years ago

Farshad started a new conversation Model Name And Test

I create a model and migration with composer the model name is Activity and all is good

but when I run my test got that error not find App\Activite class why it should looking for that class

this is my test method

public function it_records_activity_when_a_thread_is_created() {

    $this->signIn();

    $thread=create('App\Thread');

    $this->assertDatabaseHas('activities',[
       'type' =>'created_thread',
       'user_id' =>auth()->id(),
       'subject_id' =>$thread->id,
       'subject_type'  =>'App\Thread'
    ]);

    $activity=Activity::first();

    $this->assertEquals($activity->subject->id,$thread->id);
}
29 May
2 years ago

Farshad started a new conversation Mix Debug Error

I install node and add some command to mix function but when run the npm code got some errors

My error is

0 info it worked if it ends with ok 1 verbose cli [ 'C:\Program Files\nodejs\node.exe', 1 verbose cli 'C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'dev' ] 2 info using [email protected] 3 info using [email protected] 4 verbose run-script [ 'predev', 'dev', 'postdev' ] 5 info lifecycle @~predev: @ 6 silly lifecycle @~predev: no script for predev, continuing 7 info lifecycle @~dev: @ 8 verbose lifecycle @~dev: unsafe-perm in lifecycle true 9 verbose lifecycle @~dev: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;E:\wamp\www\lab\laravel\blog\node_modules.bin;C:\Program Files\Git\mingw64\bin;C:\Program Files\Git\usr\bin;C:\Users\Farshad\bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files (x86)\Brackets\command;E:\wamp\bin\php\php7.0.0;C:\ProgramData\ComposerSetup\bin;C:\Program Files\nodejs;C:\Program Files (x86)\GtkSharp\2.12\bin;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\130\Tools\Binn;C:\Windows\system32\config\systemprofile.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;C:\Users\Farshad\AppData\Local\Microsoft\WindowsApps;C:\Users\Farshad\AppData\Roaming\Composer\vendor\bin;C:\Users\Farshad\AppData\Roaming\npm;D:\Android\sdk\tools;D:\Android\sdk\platform-tools 10 verbose lifecycle @~dev: CWD: E:\wamp\www\lab\laravel\blog 11 silly lifecycle @~dev: Args: [ '/d /s /c', 'npm run development' ] 12 silly lifecycle @~dev: Returned: code: 1 signal: null 13 info lifecycle @~dev: Failed to exec dev script 14 verbose stack Error: @ dev: npm run development 14 verbose stack Exit status 1 14 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\lib\utils\lifecycle.js:255:16) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at EventEmitter.emit (events.js:191:7) 14 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:40:14) 14 verbose stack at emitTwo (events.js:106:13) 14 verbose stack at ChildProcess.emit (events.js:191:7) 14 verbose stack at maybeClose (internal/child_process.js:886:16) 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 15 verbose pkgid @ 16 verbose cwd E:\wamp\www\lab\laravel\blog 17 error Windows_NT 10.0.14393 18 error argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "dev" 19 error node v6.10.2 20 error npm v3.10.10 21 error code ELIFECYCLE 22 error @ dev: npm run development 22 error Exit status 1 23 error Failed at the @ dev script 'npm run development'. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error npm run development 23 error You can get information on how to open an issue for this project with: 23 error npm bugs 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]

28 May
2 years ago

Farshad started a new conversation Migration Relation

I create 3 tables with name users,cards and notes and write my relation in note migration and when migrate at first cards table create and after that notes table create and when run the relation because users table not created yet Got error and can't execute my relation.

what can I do for that??????????????