rob897

rob897

Member Since 5 Years Ago

Experience Points 135,530
Experience Level 28

4,470 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 1517
Lessons
Completed
Best Reply Awards 10
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.

28 Mar
1 year ago

rob897 left a reply on Carbon Displays Current Date/time

Is your confirmedAt field set in your modal? https://laravel.com/docs/5.6/eloquent-mutators#date-mutators

protected $dates = [
        'confirmedAt'
    ];
14 Feb
1 year ago

rob897 left a reply on The Page Has Expired Due To Inactivity.

Did you env('APP_KEY') change by chance?

10 Jan
1 year ago

rob897 left a reply on How To Save Selected Checkbox Value To Database In Laravel?

public function store(Request $request)
{
    foreach ($request->report as $key => $value) {
        // do you insert here
    }
}
09 Jan
1 year ago

rob897 left a reply on Laravel 5.5 - Migration Not Working

you can change your config/database.php file and change strict option to false

'mysql' => [
            'driver' => 'mysql',
            'strict' => false
        ],

Or make your timestamps nullable

05 Jan
1 year ago
03 Jan
1 year ago

rob897 left a reply on Modifying The Url

This is a WHMCS installation. They use ionCube to encrypt their source code.

rob897 left a reply on Sending Checkbox Values To Email In Laravel 5.4

did you try

<h3> Contact Form </h3>

<div>
    <b>Name: </b> {{ $name }} <br> <br>
    <b>Phone: </b> {{ $phone }} <br> <br>
    <b>Email Address: </b> {{ $email }} <br> <br>
    <b>Service: </b> 
    @foreach($checkbox as $service)
            {{ $service}}
    @endforeach 
    <br> <br>
    <b>Message:</b> {{ $bodyMessage }} 
</div>

rob897 left a reply on Sending Checkbox Values To Email In Laravel 5.4

ok if you expand out the request you can drill down into the values that were submitted. Guessing you will have an array of checkboxes in there.

rob897 left a reply on Sending Checkbox Values To Email In Laravel 5.4

In your controller can you copy the output if you dd() the request?

public function postContact(Request $request){
    dd($request);

        $this->validate($request, [
                'name' => 'required',
                'phone' => 'required',
                'email' => 'required|email',
                'message' => 'required|min:20',
                'checkbox' => 'required']);

        $data = array(
                'name' => $request->name,
                'phone' => $request->phone,
                'email' => $request ->email,
                'checkbox' => $request ->checkbox,
                'bodyMessage' => $request->message
            );

        Mail::send('emails.contact', $data, function($message) use ($data){
            $message->from($data['email']);
            $message->to('[email protected]*************');
        });


        return redirect()->back();

    }

rob897 left a reply on Sending Checkbox Values To Email In Laravel 5.4

You are setting your checkbox as an array by using these

<input type="checkbox" name="checkbox[]" value="Website Design" > Website Development (Blog or E-Commerce)<br>
<input type="checkbox" name="checkbox[]" value="School Management System" > School Management Systems  <br> 
<input type="checkbox" name="checkbox" value="Graphics Design" > Graphics Design (3D, Wordmark logos)<br> 
<input type="checkbox" name="checkbox[]" value="Digital Marketing" > Digital Marketing (SEO & Social Media) <br>
<input type="checkbox" name="checkbox[]" value="Article/Content writing" > Article/Content writing <br> <br>

The Graphics Design one is missing the [] as well.

So you will need to do a foreach loop in your blade file

<b>Service: </b> 
@foreach($checkbox as $service)
    {{ $service}}
@endforeach 

You will have to figure out the formatting

02 Jan
1 year ago

rob897 left a reply on Upgrade Php Version

Have you looked at your log files to see what errors are being thrown?

rob897 left a reply on Upgrade Php Version

what version of laravel are you using?

28 Dec
1 year ago

rob897 left a reply on Hitting 404 On An Existing Controller Method :/

Looks like your adding an $ to the variable in the route, try removing it?

Route::get('verein/{verein}', 'Superadmin\[email protected]')->name('superadmin.verein.show');
14 Dec
1 year ago

rob897 left a reply on Laravel-mix Error Npm Run Watch

did you run

npm install

So it will install cross-env and the other dependencies?

rob897 left a reply on Laravel-mix Error Npm Run Watch

Assuming you are running this ssh'd into your homestead vm?

rob897 left a reply on Laravel-mix Error Npm Run Watch

did you try

npm run watch-poll
08 Dec
1 year ago

rob897 left a reply on Laravel Is Forcing Https On My Local Enviroment

That does the trick. I renamed all my .dev domains to .test and they all work again.

27 Nov
1 year ago

rob897 left a reply on Passing Data Using Array From View (Blade) To Controller In Laravel

looks like you are missing multiple in your select tag

<select class="form-control m-select2" id="m_select2_2" name="certificateId[]" multiple>
21 Nov
1 year ago

rob897 left a reply on What Does Mean?

chmod -R 755 /home/aung/solve/public/images/
17 Nov
1 year ago

rob897 started a new conversation Multiple Laravel Apps Using One Users Table

Looking for some suggestions here. I have 4 separate laravel applications that all currently use their own databases. All these apps are used by the same people consistently so I want to just use one Users table to authenticate against, but also still use the Laravel Permissions Package for each application.

16 Nov
1 year ago

rob897 left a reply on Make My Website As An Application

Think you mean Single Page App that Jeffrey covers here: link

15 Nov
1 year ago

rob897 left a reply on Valet Serving Php Files

valet is going to look for a public/index.php file by default is my best guess.

rob897 left a reply on Undefined Variable: Forum

just do

public function index()
    {
        $forums = Forum::all();
        return view('forum.index', compact('forums'));
    }

@foreach($forums as $forum)
<article class="well well-sm">
    <div class="row">
        <section class="col-md-7 title">
            <a href="#">{{ $forum->title }}</a>
        </section>
        <section class="col-md-5 bio">
            <span class="label label-primary">پاسخ : ۱۰</span>
            <span class="label label-info">تشکر : ۱۰۰</span>
            <span class="label label-success">RaymondDragon</span>
        </section>
    </div>
</article>
@endforeach 

rob897 left a reply on Laravel - Connection Could Not Be Established With Host

If you setup a free account on mailtrap.io update your .env settings and see if the mail hits this service.. if it does then you have an issue with your provider.

rob897 left a reply on Laravel - Connection Could Not Be Established With Host

Is your hosting provider blocking port 587 or that domain? If you have ssh access to the server you could try to telnet to test your connection

telnet smtp.ziggo.nl 587
14 Nov
1 year ago

rob897 left a reply on How To Deploy Laravel Project In Windows Server 2012

You can try XAMPP not bad for small applications

10 Nov
1 year ago

rob897 left a reply on HasManyThrough Relation

Thanks, I didn't see the nested options. Works great!!

rob897 started a new conversation HasManyThrough Relation

Table schema

events
- id
- name

time_slots
- id
- event_id

user_to_time_slots
 - id
 - user_id
 - time_slot_id

Right now I have to query the user_to_time_slots for the logged in user which has this model

class UserToTimeSlot extends Model
{
    protected $table = 'users_to_timeslots';

    public function timeSlots()
    {
        return $this->belongsTo(TimeSlot::class,'time_slot_id','id');
    }
}

But now I want to grab the event columns and I believe I need an hasManyThrough relation but everything I tried is not working.

dd(UserToTimeSlot::with('timeSlots')->where('user_id','=',$user_id)->get());

In my TimeSlot model I have the relationship setup for events.

class TimeSlot extends Model
{

    public function events()
    {
        return $this->hasOne(Event::class,'id','event_id');
    }
}

Any help would be appreciated.

09 Nov
1 year ago

rob897 left a reply on How To Use A Normal If Statement In PHP In Controller To Check If A Dropdown Has A Selected Value

you just need the name of your dropdown and then can check if it is set or not.

if(isset($request->downDownFieldName)) {

}

rob897 left a reply on Mailables With Multiple Attachments

The issue here was $attachments is used in mailables to send attachements that's why I had multiple instances. So use Mailable::attach() or change the property name in your mailable constructor.

02 Nov
1 year ago

rob897 started a new conversation Mailables With Multiple Attachments

Here is my controller

            $attachments = [];
            if($request->file('attachment')) {
                foreach($request->file('attachment') as $attachment) {
                    $attachments[] = [
                                        'file' => $attachment->getRealPath(),
                                        'options' => [
                                            'mime' => $attachment->getClientMimeType(),
                                            'as'    => $attachment->getClientOriginalName()
                                        ]
                                    ];
                }
                Mail::to($emailTo)->send(new ResearchCreate($requestDetails,$attachments));

Here is my mailer

        if(isset($this->attachments)) {
            $mailable = $this->subject('New research request')->markdown('app.emails.research.create');
            //dd($this->attachments);
            foreach($this->attachments as $attachment) {
                $mailable->attach($attachment['file'],$attachment['options']);
            }

            return $mailable;
    }

Not matter how many attachments I supply, it is attaching each of them twice. So if I attach 1 file, I receive 2 copies of that same file..

24 Oct
1 year ago

rob897 left a reply on Htmlspecialchars() Expects Parameter 1 To Be String On Post (Tags) Edit

if you die and dump your tags variable can you post that here?

public function edit($id)
    {
      $post = Post::find($id);
      $categories = Category::all();
      $tags = Tag::all();
      dd($tags);
      return view('post.edit',compact('post','categories','tags'));
    }

rob897 left a reply on Htmlspecialchars() Expects Parameter 1 To Be String On Post (Tags) Edit

your $tags2 is an array not an object. $tags is a collection so they get passed into your view

 public function edit($id)
    {
      $post = Post::find($id);
      $categories = Category::all();
      $tags = Tag::all();
      return view('post.edit',compact('post','categories','tags'));
    }
<input type="text" name="tags" id="tags" value="{{$tags->name}}" class="form-control">
18 Jul
2 years ago

rob897 left a reply on Errors In Update Form

Can you post the form and routes?

17 Jul
2 years ago

rob897 left a reply on Time Tracking

This is what my group currently uses OrangeScrum, but it has a monthly fee I believe but its decent. http://blog.orangescrum.com/2016/06/get-team-track-time.html

rob897 left a reply on Blade Validation Error As Pop Up

Why don't you pull in sweetalert https://limonte.github.io/sweetalert2/ and pass all the errors to it?