SoftwarEng92

SoftwarEng92

Member Since 4 Months Ago

Experience Points 8,500
Experience Level 2

1,500 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 81
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.

06 Apr
3 months ago

SoftwarEng92 left a reply on Laravel Valet Only Returns "It Works!"

Okay. I'll solve that way.

You should follow these steps :

1-) sudo apachectl stop (this code will stop listening port 80) 2-) sudo lsof -n -i:80 (this command will show which port do you use. If first command works you shouldn't see any port) 3-) valet restart 4-) go to your project folder 5-) valet link [project-name] 6-) check your project with that command -> valet links 7-) valet open (you write this command in your project folder)

I did it this way. I hope this answer will help to your problem!

SoftwarEng92 started a new conversation Laravel Valet Only Returns "It Works!"

Hi Laravel lovers, I've php v7.3 on macOs Mojave and Laravel valet v2.2 and I followed instructions to that page -> https://laravel.com/docs/5.8/valet but It didn't work for me. Any help I'm very appreciate it.

Notice : I tried to delete and reinstall, Laravel valet, dnsmasq, nginx and also update php version.

now, when I write valet links command on terminal, It shows;

+-----------------+-----+-----------------------------+---------------------------------------------------+
| Site            | SSL | URL                         | Path                                              |
+-----------------+-----+-----------------------------+---------------------------------------------------+
| talha_birdBoard |     | http://talha_birdBoard.test | /Users/talhaisler/LaravelProjects/talha_birdBoard |
+-----------------+-----+-----------------------------+---------------------------------------------------+

25 Mar
3 months ago

SoftwarEng92 left a reply on Sublime Text 3 Package & Laravel Functions Helper

You're right. I just see that name :/. thank you

SoftwarEng92 started a new conversation Sublime Text 3 Package & Laravel Functions Helper

I'm watched this episode https://laracasts.com/series/build-a-laravel-app-with-tdd/episodes/13 at 01:06 I saw Jeffrey used helper which is helps to see other functions of Laravel. If someone know which package it is let me know.

and I shared one picture belongs to that episode. https://eksiup.com/28834c569191

21 Mar
3 months ago

SoftwarEng92 started a new conversation Laravel PHPUnit Test Giving Error

I'm follow this series https://laracasts.com/series/build-a-laravel-app-with-tdd in the 3. video I've an issue. I'm write what jeffrey wrote but error still coming up in front of me.

This is ProjectsTest Class

namespace Tests\Feature;

use Tests\TestCase;
use Illuminate\Foundation\Testing\WithFaker;
use Illuminate\Foundation\Testing\RefreshDatabase;

class ProjectsTest extends TestCase
{
    use WithFaker, RefreshDatabase;

    /** @test */
    public function a_user_can_create_a_project()
    {
        $this->withoutExceptionHandling();

        $attributes = [
            'title' => $this->faker->sentence,
            'description' => $this->faker->paragraph
        ];

        $this->post('/projects', $attributes)->assertRedirect('/projects');
        $this->assertDatabaseHas('projects', $attributes);
        $this->get('/projets')->assertSee($attributes['title']);

    }

    /** @test */
    public function a_project_requires_a_title()
    {
        $attributes = factory('App\Project')->raw(['title' => '']);
        $this->post('/projects', $attributes)->assertSessionHasErrors('title');
    }

    /** @test */
    public function a_project_requires_a_description()
    {
        $attributes = factory('App\Project')->raw(['description' => '']);
        $this->post('/projects', $attributes)->assertSessionHasErrors('description');
    }
}

This part of code from ProjectsController

namespace App\Http\Controllers;

use App\Project;
use Illuminate\Http\Request;

class ProjectsController extends Controller
{
    public function index()
    {
        $projects = Project::all();
        return view('projects.index', compact('projects'));
    }

    public function store()
    {
        //validate
        $attributes =  request()->validate(['title' => 'required', 'description' => 'required']);
        //persist
        Project::create($attributes);
        //redirect
        redirect('/projects');
    }
}

And that code from ProjectFactory.php

use Faker\Generator as Faker;

$factory->define(App\Project::class, function (Faker $faker) {
    return [
        'title' => $faker->sentence,
        'description' => $ƒaker->paragraph
    ];
});

Finally error is,

PHPUnit 7.5.7 by Sebastian Bergmann and contributors.

FEE 3 / 3 (100%)

Time: 174 ms, Memory: 22.00 MB

There were 2 errors:

  1. Tests\Feature\ProjectsTest::a_project_requires_a_title ErrorException: Undefined variable: ƒaker

/Users/talhaisler/birdboard/database/factories/ProjectFactory.php:8 /Users/talhaisler/birdboard/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:273 /Users/talhaisler/birdboard/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:246 /Users/talhaisler/birdboard/tests/Feature/ProjectsTest.php:33

  1. Tests\Feature\ProjectsTest::a_project_requires_a_description ErrorException: Undefined variable: ƒaker

/Users/talhaisler/birdboard/database/factories/ProjectFactory.php:8 /Users/talhaisler/birdboard/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:273 /Users/talhaisler/birdboard/vendor/laravel/framework/src/Illuminate/Database/Eloquent/FactoryBuilder.php:246 /Users/talhaisler/birdboard/tests/Feature/ProjectsTest.php:40

--

There was 1 failure:

  1. Tests\Feature\ProjectsTest::a_user_can_create_a_project Response status code [200] is not a redirect status code. Failed asserting that false is true.

/Users/talhaisler/birdboard/vendor/laravel/framework/src/Illuminate/Foundation/Testing/TestResponse.php:148 /Users/talhaisler/birdboard/tests/Feature/ProjectsTest.php:24

ERRORS! Tests: 3, Assertions: 1, Errors: 2, Failures: 1.

18 Mar
4 months ago

SoftwarEng92 left a reply on How To Change Http://127.0.0.1:8000/ Name Like App.dev

@RIN4IK - thank you for your answer. I'll try it.

SoftwarEng92 left a reply on How To Change Http://127.0.0.1:8000/ Name Like App.dev

@WILK_RANDALL - I'm using mac, is there any chance to change my host & port setting with laravel artisan commands? --host[=HOST] The host address to serve the application on [default: "127.0.0.1"] --port[=PORT] The port to serve the application on [default: 8000]

SoftwarEng92 started a new conversation How To Change Http://127.0.0.1:8000/ Name Like App.dev

if it's possible can I change host name without any local server (xampp or mamp) app?

16 Mar
4 months ago

SoftwarEng92 left a reply on Laravel 5.7 Sending E-mail Error

@FTIERSCH - @ftiersch thank you so much for your help sir..

SoftwarEng92 started a new conversation Laravel 5.7 Sending E-mail Error

Hello Laravel lovers, I have a problem with sending email. I couldn't send any project variable such as title, description and id to mail.project-created component. Anyone can help to solve that problem? Thank you for any help you can offer..

that is mail.project-created component page code's @component('mail::message') # NEW PROJECT: {{ $project->title }} {{ $project->description }} @component('mail::button', ['url' => url('/projects/' . $project->id)]) View Project @endcomponent Thanks, {{ config('app.name') }} @endcomponent

that is ProjectsController.php's code public function store() { $attributes = $this->valideProject();

    $attributes['owner_id'] = auth()->id();

    Project::create($attributes);

    return redirect('/projects');
}

and finally that is ProjectCreated code's