yafeearun

yafeearun

Member Since 1 Month Ago

Experience Points 490
Experience Level 1

4,510 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 0
Lessons
Completed
Best Reply Awards 0
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.

11 Jun
1 week ago

yafeearun started a new conversation Notify Multiple Users Or Group In Application

Hi

i have tried to notify the group of people, but i can't made it, here i shared my code ,kindly help me to short out this

21 May
4 weeks ago

yafeearun left a reply on Page Not Found - Except Route Proplem

@snapey @munazzil thanks guys now works fine

yafeearun left a reply on Page Not Found - Except Route Proplem

@MUNAZZIL - i have done it but it doesn't return my newly added URL's

product/getCompanyDetails
login/fb

how to fix this

yafeearun left a reply on Page Not Found - Except Route Proplem

@MUNAZZIL - i got a error

ReflectionException  : Class App\Http\Controllers\Api\BusinessModelsController does not exist

while run the command in CMD

yafeearun left a reply on Page Not Found - Except Route Proplem

@YEZAWHEIN - Hi

i have changed like

Route::post('product/getCompanyDetails', '[email protected]');

but still get same 404 status

yafeearun started a new conversation Page Not Found - Except Route Proplem

Hi

i have tried to add a url product/test without csrf token verification and i done the following steps

added route in routes

Route::post('product/test', '[email protected]');

and also added a url in app/Http/Middleware/VerifyCsrfToken.php

protected $except = [
    'webhook/stripe',  // this url works fine
         'product/test' // but this one returns 404
    ];

but while i tried to call the URL i got 404 status. guys help me to solve this.. and my old URL works fine

10 May
1 month ago

yafeearun started a new conversation How To Get Accounts Which Are Have Projects

Hi

i have tried to get back the accounts which are have the projects,but accounts doesn't have the project id but invoice have account id and project id. so i mentioned the relationship like

public function invoices()
{
        return $this->hasManyThrough('App\Models\Invoice', 'App\Models\Project')->latest('due_date');
}

and i know we can get the result if we know the account id like $account = 123 $result->with(['invoices.project'=> function($q) use ($account){ $q->where('account_id',$account); }])->get()->toArray();

but i need to fetch only accounts which are have projects. let me help to short out it...

08 May
1 month ago

yafeearun left a reply on Allowed Memory Size Of 138412032 Bytes Exhausted (tried To Allocate 20480 Bytes)

@MUSHOOD - this trick not works in server.kindly suggest something to solve this issue. i'm always getting 500 error code while call the API to reassign the roles.

07 May
1 month ago
06 May
1 month ago

yafeearun started a new conversation Allowed Memory Size Of 138412032 Bytes Exhausted (tried To Allocate 20480 Bytes)

i tried to update my role permissions and i have 73 permissions and i have used https://github.com/spatie/laravel-permission#extending for role and permission .

when i try to update a role with all permissions, got Allowed memory size of 138412032 bytes exhausted (tried to allocate 20480 bytes) most of the times and some times it works well.

public function update(Request $request, $id)
{
        $this->validate($request, [
                'name' => ['required', 'string', 'max:255'],
    ]);
        $role = Role::findOrFail($id);
        $role->update($request->except(['permissions']));
        $role->syncPermissions($request->permissions);
        //event(new RoleSaved($role));
        return response()->json($role, 200);
}
29 Apr
1 month ago

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

@VAN1310 - i tried that sample only. without message it's works but when i pass the message it not works .

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

@SNAPEY - email blade

Test Email

{{ $message }}

and controller action

use App\Mail\Email;

public function TestEmail(){
      $data = ['message' => 'This is a test!'];

      \Mail::to('mail')->send(new Email($data));
}

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

@FORAM - thanks for your reply, but not working for me.

yafeearun started a new conversation Htmlspecialchars() Expects Parameter 1 To Be String, Object Given

Hi guys i have tried to send a mail and i write a mailable like

public function build()
    {
        $address = '[email protected]';
        $subject = 'This is a demo!';
        $name = 'Jane Doe';

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

even i have passed as string like ->with([ "message" => "test message"]);

but i got htmlspecialchars() expects parameter 1 to be string, object given, i tried to solve but i can't find out the exact solution. help me to solve this issue

yafeearun left a reply on View [emails.test] Not Found

@NAKOV - thanks for your help. and i have fixed the issue. resource folder misplaced inside the app,now placed in root and now works fine.

yafeearun left a reply on View [emails.test] Not Found

thanks for your suggestion but still i got the same error..

yafeearun left a reply on View [emails.test] Not Found

@NAKOV - Hi Nakov

i have cleared the cache and still facing the same issue

and i have stored my controller in controller/api folder.

yafeearun started a new conversation View [emails.test] Not Found

I have to tried to send a mail from API controller and i got the error "View [\emails.test] not found"

API controller

use App\Mail\Email;

public function TestEmail(){ $data = ['message' => 'This is a test!'];

  \Mail::to('[email protected]')->send(new Email($data));
}

Email class

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

View location

app/resources/views/emails/test.blade.php