artisticre

artisticre

Member Since 2 Years Ago

Experience Points
7,000
Total
Experience

3,000 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
20
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

Level 2
7,000 XP
May
29
1 day ago
Activity icon

Replied to BarryVDH Modification

I think it has to do with this link. If I take it out, the data is being pulled correctly but if I add it in, I get Missing required parameters. I just think the ID is not being passed to the pdf export. Not sure how to fix it.

 <a href="{{url('pdfview', $row->id)}}">print</a>

Activity icon

Replied to BarryVDH Modification

I did that and I get Missing required parameters for [Route: pdfview] [URI: pdfview/{id}]. pdfview.blade.php

Activity icon

Started a new Conversation BarryVDH Modification

I am trying to print a pdf. It works if I pull all users but when I try to get specific user, I get Missing required parameters for [Route: pdfview] [URI: pdfview/{id}]. I know its not passing the id but not sure where to add it.

Route

Route::get('/pdfview/{id}',array('as'=>'pdfview','uses'=>'[email protected]'));

Controller

public function pdfview(Request $request)
    {
        $pilgrim_print = DB::table('users')
        ->join('profile', 'profile.user_id', '=', 'users.id')
        ->leftJoin('pilgrimapp', 'pilgrimapp.user_id', '=' ,'users.id')
        ->select(
            '*',
            
            )
            ->where('pilgrimapp.id', '=', Auth::user()->id)
            ->get();
        view()->share('pilgrim_print',$pilgrim_print);


        if($request->has('download')){
            $pdf = PDF::loadView('pdfview');
            return $pdf->download('pdfview.pdf');
        }


        return view('registrar.pdfview');
    }

Link to page

 <a href="{{url('pdfview', $row->id)}}">print</a>

pdfview blade

@extends('layouts.print')

@section('content')
<div class="container">


	<br/>

	<a href="{{ route('pdfview',['download'=>'pdf']) }}">Download PDF</a>

	<table>
		<tr>
			<th>No</th>
			<th>Title</th>
			<th>Description</th>
		</tr>
		@foreach ($pilgrim_print as $key => $p)

		<tr>
			<td>{{ ++$key }}</td>
			<td>{{ $p->name }}</td>
			<td>{{ $p->email }}</td>
			<td>{{ $p->primarycontact}}
		</tr>
		@endforeach
	</table>
</div>
@endsection
May
28
2 days ago
Activity icon

Started a new Conversation Need Help With Select Statement

I have roles, roles_user, user, sponsorapp tables. I want to query all of them to get username from user and sponsor.id from sponsorapp to list all usernames that have role of sponsor. I just don't know how to do it.

Users

  public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('email')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });
    }

Roles

 public function up()
    {
        Schema::create('roles', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name');
            $table->timestamps();
        });
    }

Role_User

  public function up()
    {
        Schema::create('role_user', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('role_id')->unsigned();
            $table->bigInteger('user_id')->unsigned();
            $table->timestamps();
        });
    }

SponsorApp

 public function up()
    {
        Schema::create('sponsorapp', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('user_id')->unsigned();
            $table->string('besttime');
            $table->string('applicantname');
            $table->boolean('applicantbaptized');
            $table->boolean('spousediscuss');
            $table->boolean('bothspouseattend');
            $table->string('ifnospouseattend')->nullable;
            $table->text('whygoodcandidate');
            $table->text('applicantattitude');
            $table->text('leadershipexpectations');
            $table->text('sponsorsupport');
            $table->text('otherinfo');
            $table->date('datesigned');
            $table->timestamps();
        });
    }
May
22
1 week ago
Activity icon

Replied to Not Sure What To Do

I think the problem is if the user has more than one application submitted which is ok but when I do ->where('sponsorapp.user_id', '=', $id) it is listing all for that user_id. I need to find a way when I click on an individual user it goes to only that application and not all for that user_id. Does this make sense?

Activity icon

Started a new Conversation Not Sure What To Do

I have an application. I think my relationship might be wrong but here goes. Its working and collecting data. It is all working fine except when I want to click on an individual application. It is listing all based on the the application table user_id. This is where I think my relationships are wrong.

Users Table

public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('email')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });
    }

Profile Table

public function up()
    {
        Schema::create('profile', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('user_id')->nullable();
            $table->string('address')->nullable();
            $table->string('apt')->nullable();
            $table->string('city')->nullable();
            $table->string('state')->nullable();
            $table->string('zipcode')->nullable();
            $table->string('homephone')->nullable();
            $table->string('cellphone')->nullable();
             $table->timestamps();
        });
    }

Application Table

public function up()
    {
        Schema::create('sponsorapp', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('user_id')->unsigned();
            $table->string('besttime');
            $table->string('applicantname');
            $table->boolean('applicantbaptized');
            $table->boolean('spousediscuss');
            $table->boolean('bothspouseattend');
            $table->string('ifnospouseattend')->nullable;
            $table->text('whygoodcandidate');
            $table->text('applicantattitude');
            $table->text('leadershipexpectations');
            $table->text('sponsorsupport');
            $table->text('otherinfo');
            $table->date('datesigned');
            $table->timestamps();
        });
    }

Show method

public function show($id)
    {
        {
            $sponsor = DB::table('users')
            ->join('profile', 'profile.user_id', '=', 'users.id')
            ->leftJoin('sponsorapp', 'sponsorapp.user_id', '=' ,'users.id')
            ->select(
                'users.name', 
                'users.email', 
                'profile.address',
                'profile.apt',
                'profile.city',
                'profile.state',
                'profile.zipcode',
                'profile.homephone',
                'profile.cellphone',
                'sponsorapp.applicantname',
                'sponsorapp.besttime',
                'sponsorapp.applicantbaptized',
                'sponsorapp.spousediscuss',
                'sponsorapp.bothspouseattend',
                'sponsorapp.user_id'
                )
                ->where('sponsorapp.user_id', '=', $id)
                ->get();
                return view('sponsorapplication.show', compact('sponsor'));
        }
    }

Activity icon

Started a new Conversation Radio Button Not Formatting Correctly

I have a radio button below, its inputting 1 for yes and 0 for no and trying to format it with {{$sp->bothspouseattend ? 'Yes' : 'No'}}

but it always displays no no matter what the database returns. What am I doing wrong?

<div class="pretty p-icon p-round mt-4">
        <input type="radio" name="bothspouseattend" value="1" />
        <div class="state p-primary">
            <i class="icon mdi mdi-check"></i>
            <label class="font-weight-bold text-primary">Yes</label>
        </div>
    </div>

    <div class="pretty p-icon p-round">
        <input type="radio" name="bothspouseattend" value="0" />
        <div class="state p-warning">
            <i class="icon mdi mdi-check"></i>
            <label class="font-weight-bold text-primary">No</label>
        </div>
    </div>
May
21
1 week ago
Activity icon

Started a new Conversation I Don't Know How To Fix This....

I have this dashboard. When logged in as a sponsor, it works great. I log out and log in as a different sponsor and I get Undefined variable: sponsor (View: C:\wamp\www\lcscroles\resources\views\sponsor\dashboard.blade.php)

How can I make this code work for all sponsors?

Dashboard

@extends('layouts.app')

@section('content')

<div class="row justify-content-center">
    <div class="col-md-8">
        <div class="card">
            <div class="card-header">Sponsor Dashboard</div>

            <div class="card-body">
                <a href="{{route('application.create')}}">Start App</a>

                @foreach($sponsor as $row)
                    {{$row->name}} - {{$row->email}} - {{$row->cellphone}} - {{$row->whichweekend}}
                    
                @endforeach

            </div>
        </div>
    </div>
</div>
@endsection

Index Method Controller

public function index()
   {
    $id = Auth::user()->id;
        $sponsor = DB::table('users')
        ->join('profile', 'profile.user_id', '=', 'users.id')
        ->leftJoin('sponsorapp', 'sponsorapp.user_id', '=' ,'users.id')
        ->select(
            'users.name', 
            'users.email', 
            'profile.address',
            'profile.apt',
            'profile.city',
            'profile.state',
            'profile.zipcode',
            'profile.homephone',
            'profile.cellphone',
            'sponsorapp.whichweekend',
            )
            ->where('sponsorapp.user_id', '=', $id)
            ->get();
            return view('sponsor.dashboard', compact('sponsor'));


    }
Activity icon

Started a new Conversation If Statement In Navbar Link

In my Login Controller I have the following logic where it redirects based on role. I want to add the same logic to my navbar to have it redirect to the correct dashboard based on the role. How can I do this?

<a class="dropdown-item" href="@if  @endif">Dashboard</a>

public function redirectTo() 
    {  
         if(Auth::user()->hasRole('registrar')) {
             $this->redirectTo = route('registrar-dashboard');
             return $this->redirectTo;
         } elseif
            (Auth::user()->hasRole('team')) {
                $this->redirectTo = route('team-dashboard');
                return $this->redirectTo;
         
         } elseif 
        (Auth::user()->hasRole('webmaster')) {
            $this->redirectTo = route('webmaster-dashboard');
            return $this->redirectTo;
     } elseif
     (Auth::user()->hasRole('pastor')) {
        $this->redirectTo = route('pastor-dashboard');
        return $this->redirectTo;
     } elseif
     (Auth::user()->hasRole('sponsor')) {
        $this->redirectTo = route('sponsor-dashboard');
        return $this->redirectTo;

    } elseif
    (Auth::user()->hasRole('pilgrim')) {
       $this->redirectTo = route('pilgrim-dashboard');
       return $this->redirectTo;
    } elseif
    (Auth::user()->hasRole('user')) {
       $this->redirectTo = route('user-dashboard');
       return $this->redirectTo;
    }
  return $this->redirectTo;
    }
May
20
1 week ago
Activity icon

Replied to Middleware Question

I get that part. Right now it is returning the 403 for role registrar but I want it to throw it if the role is not registrar

Activity icon

Started a new Conversation Middleware Question

I have this middleware that looks at the role. I want it to say if the role is not registrar return 403 but not sure how to fix that

public function handle($request, Closure $next)
{
    
if(Auth::user()->hasRole('registrar'))
{
return view('errors.403');
}
return $next($request);
}

May
15
2 weeks ago
Activity icon

Replied to What Is Going On?

Is there a better way to select from three tables?

Activity icon

Started a new Conversation What Is Going On?

I log in as a user and create my application. Then I register a new user with the same role, go to the dashboard and i get this error. I think its because there are no applications for this user but I am not sure. It works on a different user with an application to view.

Missing required parameters for [Route: sponsorapp.show] [URI: viewsponsorapp/{id}]. (View: C:\wamp64\www\lcscroles\resources\views\sponsor\dashboard.blade.php)

My routes

Route::group(['middleware' => 'auth', 'auth.sponsor'], function() {
  Route::get('/sponsor-dashboard', '[email protected]')->middleware(['auth', 'auth.sponsor'])->name('sponsor');
  Route::resource('sponsorapp','SponsorApplicationController')->middleware(['auth', 'auth.sponsor']);
  Route::get('viewsponsorapp/{id}','[email protected]')->name('sponsorapp.show')->middleware(['auth', 'auth.sponsor']);
  Route::get('printsponsorapp/{id}', 'Sponso[email protected]')->name('sponsorapp.print')->middleware(['auth', 'auth.sponsor']);

});

Where the error is coming from

<a href="{{ route('sponsorapp.show', $row->id)}}">
<a href="{{ route('sponsorapp.print', $row->id)}}">

Controller

public function getSponsorDashboard() {
        $sponsor = DB::table('users')
        ->join('profiles', 'profiles.user_id', 'users.id')
        ->leftJoin('sponsor_application', 'sponsor_application.user_id', 'users.id')
    
       ->where('profiles.user_id', '=' ,Auth::user()->id)
       ->get();
  
       return view('sponsor.dashboard', compact('sponsor'))->with('data', Auth::user()->profile);
     }
Activity icon

Started a new Conversation Authentication Question

I have an app I am working on. It is rerouting based on roles. It works well but something I discovered is if a team member submits an application it works. But if a different team member logs in as themselves, they can view the other team members application. How do I go about restricting access to the applications to the user that submitted them?

May
14
2 weeks ago
Activity icon

Started a new Conversation Not Sure How To Select Based On Input Field Name

I have three tables and migrations are listed below. Everything is working fine. It is listing the applicant name and details by a join I have below. My question is I have a view button that I want to click and select from the tables by applicant name. How do I do that?

Select statement for listing the applicant names

public function getSponsorDashboard() {
        $sponsor = DB::table('users')
        ->join('sponsor_application', 'sponsor_application.user_id', 'users.id')
        ->leftJoin('profiles', 'profiles.user_id', 'users.id')
    
       ->where('profiles.user_id', '=' ,Auth::user()->id)
       ->get();
  
       return view('sponsor.dashboard', compact('sponsor'))->with('data', Auth::user()->profile);
     }

Users Migration

public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('email')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });
    }

Profile Migration

public function up()
    {
        Schema::create('profiles', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('user_id');
            $table->string('address')->nullable;
            $table->string('apt')->nullable;
            $table->string('city')->nullable;
            $table->string('state')->nullable;
            $table->string('zipcode')->nullable;
            $table->string('homephone')->nullable;
            $table->string('cellphone')->nullable;
            $table->boolean('baptized')->nullable;
            $table->string('lastweekendserved')->nullable;
            $table->timestamps();
        });
    }

Sponsor Application Migration

public function up()
    {
        Schema::create('sponsor_application', function (Blueprint $table) {
            $table->id();
            $table->integer('user_id');
            $table->integer('profile_id');
            $table->string('besttime');
            $table->string('applicantname');
            $table->boolean('applicantbaptized');
            $table->boolean('spousediscuss');
            $table->boolean('bothspouseattend');
            $table->string('ifnospouseattend')->nullable;
            $table->text('whygoodcandidate');
            $table->text('applicantattitude');
            $table->text('leadershipexpectations');
            $table->text('sponsorsupport');
            $table->text('otherinfo');
            $table->string('sponsorsignature');

            $table->date('datesigned');
          
            $table->timestamps();
        });
    }
May
13
2 weeks ago
Activity icon

Replied to Update Relation Database

I get this error.

The baptized field must be true or false.

How do I make it true or false. Radio buttons have been my nemesis lol

Activity icon

Started a new Conversation Update Relation Database

I have this update function. When submitted it goes back to the edit page but does not update. i am really stuck here. Not sure what to fix at this point.

Update Function

public function update(Request $request, $id)
    {
       
       $data = $request->all();
       $user = Auth::user();
       Validator::make($data, [
           'name' => ['required', 'string', 'max:255'],
           'email' => ['required', 'string', 'email' ],
           'homephone' => ['required', 'string', 'max:25'],
           'cellphone' => ['required', 'string', 'max:25'],
           'address' => ['required', 'string', 'max:255'],
           'apt' => ['nullable', 'string', 'max:50'],
           'city' => ['required','string','max:255'],
           'state' => ['required','string','max:50'],
           'zipcode' => ['required', 'string', 'max:25'],
           'baptized' => ['required','boolean', 'max:20'],
           'lastweekendserved' => ['required', 'string', 'max:100']
       ])->validate();
  
       $profile = App\Profile::find($id);
       $user = $profile->user()
         ->update([
             'name' => $request->name,
             'email' => $request->email,
         ]);

        $updateProfile = App\Profile::where('user_id', $id)
        ->update([
            'homephone' => $request->homephone,
            'cellphone' => $request->cellphone,
            'address' => $request->address,
            'apt'  => $request->apt,
            'city'  => $request->city,
            'state' => $request->state,
            'zipcode' => $request->zipcode,
            'baptized' => $request->baptized,
            'lastweekendserved'  => $request->lastweekendserved,

        ]);
       return redirect()->route('profile.index')->with('success', 'Profile Updated');

Activity icon

Awarded Best Reply on Update Function Help

This isn't working. Just goes back to the edit page with empty input fields. I don't get it. I am really lost. I really appreciate your help

  public function update(Request $request)
    {
       
       $data = $request->all();
       $user = Auth::user();
       Validator::make($data, [
           'name' => ['required', 'string', 'max:255'],
           'email' => ['required', 'string', 'email' ],
           'homephone' => ['required', 'string', 'max:25'],
           'cellphone' => ['required', 'string', 'max:25'],
           'address' => ['required', 'string', 'max:255'],
           'apt' => ['nullable', 'string', 'max:50'],
           'city' => ['required','string','max:255'],
           'state' => ['required','string','max:50'],
           'zipcode' => ['required', 'string', 'max:25'],
           'baptized' => ['required','boolean', 'max:20'],
           'lastweekendserved' => ['required', 'string', 'max:100']
       ])->validate();

      
       $user = Auth::user();
       $user->name = $data['name'];
       $user->email = $data['email'];
       $user->save();

       App\Profile::updateOrCreate(
           [
               'user_id' => $user->id
           ],
           [	
               'homephone' => $data['homephone'],
               'cellphone' => $data['cellphone'],
               'address' => $data['address'],
               'apt' => $data['apt'],
               'city' => $data['city'],
               'state' => $data['state'],
               'zipcode' => $data['zipcode'],
               'baptized' => $data['baptized'],
               'lastweekendserved' => $data['lastweekendserved'],
           ]
       );
    
  
       return redirect()->route('profile.edit')->with('success', 'Profile Updated');
    }

Activity icon

Replied to Update Function Help

Its not updating anything. Not sure what to do. There is a profile id already there when the user registers for an account. Would that be a problem?

May
12
2 weeks ago
Activity icon

Replied to Update Function Help

This isn't working. Just goes back to the edit page with empty input fields. I don't get it. I am really lost. I really appreciate your help

  public function update(Request $request)
    {
       
       $data = $request->all();
       $user = Auth::user();
       Validator::make($data, [
           'name' => ['required', 'string', 'max:255'],
           'email' => ['required', 'string', 'email' ],
           'homephone' => ['required', 'string', 'max:25'],
           'cellphone' => ['required', 'string', 'max:25'],
           'address' => ['required', 'string', 'max:255'],
           'apt' => ['nullable', 'string', 'max:50'],
           'city' => ['required','string','max:255'],
           'state' => ['required','string','max:50'],
           'zipcode' => ['required', 'string', 'max:25'],
           'baptized' => ['required','boolean', 'max:20'],
           'lastweekendserved' => ['required', 'string', 'max:100']
       ])->validate();

      
       $user = Auth::user();
       $user->name = $data['name'];
       $user->email = $data['email'];
       $user->save();

       App\Profile::updateOrCreate(
           [
               'user_id' => $user->id
           ],
           [	
               'homephone' => $data['homephone'],
               'cellphone' => $data['cellphone'],
               'address' => $data['address'],
               'apt' => $data['apt'],
               'city' => $data['city'],
               'state' => $data['state'],
               'zipcode' => $data['zipcode'],
               'baptized' => $data['baptized'],
               'lastweekendserved' => $data['lastweekendserved'],
           ]
       );
    
  
       return redirect()->route('profile.edit')->with('success', 'Profile Updated');
    }

Activity icon

Replied to Update Function Help

This is what I came up with but I am not sure how this updates the name and email in the users table and the rest in the the profile table?

 public function update(Request $request)
    {
       
       $data = $request->all();
       $user = Auth::user();
       Validator::make($data, [
           'name' => ['required', 'string', 'max:255'],
           'email' => ['required', 'string', 'email' ],
           'homephone' => ['required', 'string', 'max:25'],
           'cellphone' => ['required', 'string', 'max:25'],
           'address' => ['required', 'string', 'max:255'],
           'apt' => ['nullable', 'string', 'max:50'],
           'city' => ['required','string','max:255'],
           'state' => ['required','string','max:50'],
           'zipcode' => ['required', 'string', 'max:25'],
           'baptized' => ['required','boolean', 'max:20'],
           'lastweekendserved' => ['required', 'string', 'max:100']
       ])->validate();

       $user->name = $data['name'];
       $user->email = $data['email'];
       $user->homephone = $data['homephone'];
       $user->cellphone = $data['cellphone'];
       $user->address = $data['address'];
       $user->apt = $data['apt'];
       $user->city = $data['city'];
       $user->state = $data['state'];
       $user->zipcode = $data['zipcode'];
       $user->baptized = $data['baptized'];
       $user->lastweekendserved = $data['lastweekendserved'];

       $user->save();

       App\Profile::updateOrCreate(
           ['user_id' => $user->id],
       );

       return redirect()->route('profile.index')->with('success', 'Profile Updated');
  

    }
Activity icon

Started a new Conversation Update Function Help

OK I have this edit function that works but I am not sure how to write the update function to insert into the two tables?

public function edit($id)
    {
        $userProfile = DB::table('users')
     ->leftJoin('profiles', 'profiles.user_id','users.id')
     ->where('profiles.user_id', '=' ,Auth::user()->id)
     ->get();

        return view('profile.edit', compact('userProfile'))->with('data', Auth::user()->profile);
     
          
       }

May
07
3 weeks ago
Activity icon

Started a new Conversation Link To Dashboard Question

I want to put a link on the navigation bar to the dashboard for each user but I have a different dashboard depending on the role. How do I link to each dashboard depending to on the role?

May
06
3 weeks ago
Activity icon

Replied to Weird Thing Happening HELP

Ok should i change it to auth instead of guest?

Activity icon

Started a new Conversation Weird Thing Happening HELP

I have a login function that works. It checks the role and redirects them to their dashboard. It all works. But once the user is logged in and they press the back button, it goes to route('/home') I am not sure why or how to fix it. I want it to reroute back to the users dashboard. Help?? What other code do you need to see to help me with this?

Login Controller

public function __construct()
     {
         $this->middleware('guest')->except('logout');
     }

     public function redirectTo()
     {
        if(Auth::user()->hasAnyRole('registrar')) {
         $this->redirectTo = route('registrar');
         return $this->redirectTo;
        }
          else {
             if(Auth::user()->hasAnyRole('webmaster')) {
                 $this->redirectTo = route('webmaster.');
                 return $this->redirectTo;
                }
                else {
                 if(Auth::user()->hasAnyRole('team')) {
                     $this->redirectTo = route('team');
                     return $this->redirectTo;
                }
                else {
                 if(Auth::user()->hasAnyRole('pastor')) {
                     $this->redirectTo = route('pastor');
                     return $this->redirectTo;
                }
                else {
                 if(Auth::user()->hasAnyRole('sponsor')) {
                     $this->redirectTo = route('sponsor');
                     return $this->redirectTo;
                }
                else {
                 if(Auth::user()->hasAnyRole('pilgrim')) {
                     $this->redirectTo = route('pilgrim');
                     return $this->redirectTo;
                }
                else {
                 if(Auth::user()->hasAnyRole('user')) {
                     $this->redirectTo = route('user');
                     return $this->redirectTo;
                }
                else {
                 $this->redirectTo = route('login')->with('danger','There has been an error.  Try again or contact the Webmaster');
                }
                }}}}}}}

        }

May
03
3 weeks ago
Activity icon

Replied to Middleware Isn't Right

I am looking for a user registrar for instance to log in and based on the role registrar, they are redirected to a view called registrar.dashboard. I thought this is what I am doing. I tried reading up on middleware and redirection but I think I might have done too much???

Activity icon

Started a new Conversation Middleware Isn't Right

I have a quirky thing going on. I am not sure whats going on If I login as registrar, it goes to the home page even though the login and redirect has it going to the registrar.dashboard route. Same with all roles. I am at a loss at why. Is someone willing to go through this to see why?

Login Controller

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Support\Facades\Auth;

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    use AuthenticatesUsers;

    /**
     * Where to redirect users after login.
     *
     * @var string
     */
    // protected $redirectTo = '/home';



    protected function redirectTo()
    {
        if (auth()->user()->role_id == 1) {
            return route('registrar.dashboard');

        }

        elseif (auth()->user()->role_id == 2) {
            return route('webmaster.dashboard');
        }

        elseif (auth()->user()->role_id == 3) {
            return route('team.dashboard');
        }

        elseif (auth()->user()->role_id == 4) {
            return route('pastor.dashboard');
        }

        elseif (auth()->user()->role_id == 5) {
            return route('sponsor.dashboard');
        }

        elseif (auth()->user()->role_id == 6) {
            return route('pilgrim.dashboard');
        }
        elseif (auth()->user()->role_id == 7) {
            return route('user.dashboard');
        }
    }
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest')->except('logout');
    }
}

RedirectIfAuthenticated

<?php

namespace App\Http\Middleware;

use App\Providers\RouteServiceProvider;
use Closure;
use Illuminate\Support\Facades\Auth;

class RedirectIfAuthenticated
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @param  string|null  $guard
     * @return mixed
     */
    public function handle($request, Closure $next, $guard = null)
    {
        if (Auth::guard($guard)->check() && Auth::user()->role_id==1) {
          return redirect()->route('registrar.dashboard');
        } elseif (Auth::guard($guard)->check() && Auth::user()->role_id==2) {
          return redirect()->route('webmaster.dashboard');
        } elseif (Auth::guard($guard)->check() && Auth::user()->role_id==3) {
          return redirect()->route('team.dashboard');
        } elseif (Auth::guard($guard)->check() && Auth::user()->role_id==4) {
          return redirect()->route('pastor.dashboard');
        } elseif (Auth::guard($guard)->check() && Auth::user()->role_id==5) {
          return redirect()->route('sponsor.dashbard');
        } elseif (Auth::guard($guard)->check() && Auth::user()->role_id==6) {
          return redirect()->route('pilgrim.dashboard');
        } elseif (Auth::guard($guard)->check() && Auth::user()->role_id==7) {
          return redirect()->route('user.dashboard');
        } else {
          return $next($request);
        }
    }
}

Registrar MiddeWare also the same for each role just changed id

<?php

namespace App\Http\Middleware;

use Auth;
use Closure;

class WebmasterMiddleware
{
	/**
	 * Handle an incoming request.
	 *
	 * @param  \Illuminate\Http\Request  $request
	 * @param  \Closure  $next
	 * @return mixed
	 */
	public function handle($request, Closure $next)
	{
		if ($request->user()->role_id== 1) {
			return $next($request);
		} else {
			return redirect()->route('login');
		}
	}
}

My Routes


<?php

use Illuminate\Support\Facades\Route;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Auth::routes();


Route::get('/home', '[email protected]')->name('home');



  Route::get('dashboard', 'Registrar\[email protected]')->name('registrar.dashboard')->middleware('registrar', 'auth');
   Route::get('dashboard', 'Webmaster\[email protected]')->name('webmaster.dashboard')->middleware('webmaster', 'auth');


Route::group(['prefix' =>'team', 'middleware'=>['team', 'auth'],'namespace'=>'team'], function() {
   Route::get('dashboard', '[email protected]')->name('team.dashboard');
});

Route::group(['prefix' =>'pastor', 'middleware'=>['pastor', 'auth'],'namespace'=>'pastor'], function() {
   Route::get('dashboard', '[email protected]')->name('pastor.dashboard');
});

Route::group(['prefix' =>'sponsor', 'middleware'=>['sponsor', 'auth'],'namespace'=>'sponsor'], function() {
   Route::get('dashboard', '[email protected]')->name('sponsor.dashboard');
});

Route::group(['prefix' =>'pilgrim', 'middleware'=>['pilgrim', 'auth'],'namespace'=>'pilgrim'], function() {
   Route::get('dashboard', '[email protected]')->name('pilgrim.dashboard');
});

Route::group(['prefix' =>'user', 'middleware'=>['user', 'auth'],'namespace'=>'user'], function() {
   Route::get('dashboard', '[email protected]')->name('user.dashboard');
});


Route::namespace('Admin')->prefix('admin')->name('admin.')->middleware('can:manage-users')->group(function(){
Route::resource('/users', 'UsersController', ['except' => ['show', 'create', 'store']]);

});

Route::resource('profile', 'ProfileController')->middleware('auth');



// Route::get('/profile', '[email protected]')->name('profile.index');
// Route::get('/profile/{id}/edit','[email protected]')->name('profile.edit');
// Route::get('/profile/{id}/delete','[email protected]')->name('profile.destroy');
// Route::get('/create','[email protected]')->name('profile.create');
// Route::post('/create','[email protected]')->name('profile.store');
// Route::post('/profile/update','[email protected]')->name('profile.update');

Activity icon

Replied to Trying To Get Property 'headers' Of Non-object

So how do I fix this error?

Activity icon

Started a new Conversation Trying To Get Property 'headers' Of Non-object

I am getting Trying to get property 'headers' of non-object when trying to log in. I know I am supposed to add return $next($request); which I did in the login controller but I am still getting the error.

Login Controller

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Support\Facades\Auth;

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    use AuthenticatesUsers;

    /**
     * Where to redirect users after login.
     *
     * @var string
     */
    // protected $redirectTo = '/home';



    protected function redirectTo()
    {
        if (auth()->user()->role_id == 1) {
            return route('registrar.dashboard');

        }

        elseif (auth()->user()->role_id == 2) {
            return route('webmaster.dashboard');
        }

        elseif (auth()->user()->role_id == 3) {
            return route('team.dashboard');
        }

        elseif (auth()->user()->role_id == 4) {
            return route('pastor.dashboard');
        }

        elseif (auth()->user()->role_id == 5) {
            return route('sponsor.dashboard');
        }

        elseif (auth()->user()->role_id == 6) {
            return route('pilgrim.dashboard');
        }
        elseif (auth()->user()->role_id == 7) {
            return route('user.dashboard');
        } else {
          return $next($request);
        }
    }
    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest')->except('logout');
    }
}


RedirectIfAuthenticated

public function handle($request, Closure $next, $guard = null)
     {
         if (Auth::guard($guard)->check() && Auth::user()->role->id==1) {
           return redirect()->route('registrar.dashboard');
         } elseif (Auth::guard($guard)->check() && Auth::user()->role->id==2) {
           return redirect()->route('webmaster.dashboard');
         } elseif (Auth::guard($guard)->check() && Auth::user()->role->id==3) {
           return redirect()->route('team.dashboard');
         } elseif (Auth::guard($guard)->check() && Auth::user()->role->id==4) {
           return redirect()->route('pastor.dashboard');
         } elseif (Auth::guard($guard)->check() && Auth::user()->role->id==5) {
           return redirect()->route('sponsor.dashbard');
         } elseif (Auth::guard($guard)->check() && Auth::user()->role->id==6) {
           return redirect()->route('pilgrim.dashboard');
         } elseif (Auth::guard($guard)->check() && Auth::user()->role->id==7) {
           return redirect()->route('user.dashboard');
         } else {
           return $next($request);
         }
     }
 }

Apr
30
1 month ago
Activity icon

Replied to ACL Tutorial

The problem I have is I have redirects to dashboards like you said but it doesnt restrict the other dashboards. I can put the url in and go to admin dashboard when logged in as a team member

Activity icon

Started a new Conversation ACL Tutorial

Are there any good tutorials out there that will create roles and assign a dashboard for each role when logging in? For instance, I have some roles (team, webmaster, admin, user). Once the user logs in they are assigned automattically assigned user. They can log in and it goes to the user dashboard. The admin can go in and assign the different roles. They then will log in and it will go to that dashboard depending on the role. Does this make sense and is there a youtube tutorial for what I am asking?

Thanks in advance

Activity icon

Awarded Best Reply on Cannot Declare Class App\Http\Middleware\AppUser

figured it out

Activity icon

Started a new Conversation Middleware Not Working

I have a middleware listed here. I have a Roles table that I want to check against. I am new to middleware so not sure I am doing this right. Right now when I try to login it redirects back to the login view but does show the username in the dropdown in navbar. What am I doing wrong?

<?php

namespace App\Http\Middleware;

use Auth;
use Closure;

class AppUserMiddleware
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if (!Auth::check()) {
            return redirect()->route('login');
        } else {



        if (Auth::user()->role == '7') {
            return redirect()->route('home');
        }
        return $next($request);
}
    }

}


login controller

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use Illuminate\Support\Facades\Auth;

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    use AuthenticatesUsers;

    /**
     * Where to redirect users after login.
     *
     * @var string
     */
    // protected $redirectTo = '/home';

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        // $this->middleware('web')->except('logout');
    }


protected $redirectTo;

public function redirectTo()
{
  switch(Auth::user()->role){
    case 1:
    $this->redirectTo = route('registrar.dashboard');
    return $this->redirectTo;
    break;
    case 2:
    $this->redirectTo = route('webmaster.dashboard');
    return $this->redirectTo;
    break;
    case 3:
    $this->redirectTo = route('team.dashboard');
    return $this->redirectTo;
    break;
    case 4:
    $this->redirectTo = route('pastor.dashboard');
    return $this->redirectTo;
    break;
    case 5:
    $this->redirectTo = route('sponsor.dashboard');
    return $this->redirectTo;
    break;
    case 6:
    $this->redirectTo = route('pilgrim.dashboard');
    return $this->redirectTo;
    break;
    case 7:
    $this->redirectTo = route('home');
    return $this->redirectTo;
    break;
    default:
    $this->redirectTo = '/login';
    return $this->redirectTo;
  }
}


}

Activity icon

Started a new Conversation Cannot Declare Class App\Http\Middleware\AppUser

I am getting Cannot declare class App\Http\Middleware\AppUser, because the name is already in use

<?php

namespace App\Http\Middleware;

use Auth;
use Closure;

class AppUser
{
    /**
     * Handle an incoming request.
     *
     * @param  \Illuminate\Http\Request  $request
     * @param  \Closure  $next
     * @return mixed
     */
    public function handle($request, Closure $next)
    {
        if (!Auth::check()) {
            return redirect()->route('login');
        }

        if (Auth::user()->role == 1) {
            return redirect()->route('registrar.dashboard');
        }

        if (Auth::user()->role == 2) {
            return redirect()->route('webmaster.dashboard');
        }

        if (Auth::user()->role == 3) {
            return redirect()->route('team.dashboard');
        }

        if (Auth::user()->role == 4) {
            return redirect()->route('pastor.dashboard');
        }

        if (Auth::user()->role == 5) {
            return redirect()->route('sponsor.dashboard');
        }

        if (Auth::user()->role == 6) {
            return redirect()->route('pilgrim.dashboard');
        }

        if (Auth::user()->role == 7) {
            return redirect()->route('home');
        }
    }

}


Apr
29
1 month ago
Activity icon

Started a new Conversation Adding Middleware

I just do not understand how to add the correct middleware to these routes. I added how I want the middleware to route but not sure how to do it. How do I create these middleware based on the role in the role table and where do I put the code?

Route::get('/home', '[email protected]')->name('home')->middleware('Auth:users');
Route::get('/registrar-dashboard', '[email protected]')->name('registrar.dashboard')>middleware('Auth:registrar');
Route::get('/webmaster-dashboard', '[email protected]')->name('webmaster.dashboard')>middleware('Auth:webmaster');
Route::get('/team-dashboard', '[email protected]')->name('team.dashboard')>middleware('Auth:team');
Route::get('/pilgrim-dashboard', '[email protected]')->name('pilgrim.dashboard')>middleware('Auth:pilgrim');
Route::get('/pastor-dashboard', '[email protected]')->name('pastor.dashboard')>middleware('Auth:pastor');
Route::get('/sponsor-dashboard', '[email protected]')->name('sponsor.dashboard')>middleware('Auth:sponsor');
Activity icon

Started a new Conversation Middleware Based On Role Table

I have this Role table that I want to create middleware based on the role but I can't figure out how. Can someone help me get started for the middleware for role:team?

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateRolesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('roles', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('roles');
    }
}

Activity icon

Replied to Check If ID Exists Then Do Not Display

This is what I have and I get Undefined variable: users

  @unless ($users->profile)
                    <a href="{{route('profile.create')}}">Create Profile</a>
                    @endunless 

Activity icon

Replied to Check If ID Exists Then Do Not Display

anyone have an idea of how to write a code to where it displays the create profile button only if there isn't a profile already.

Activity icon

Replied to Database Relationship

Profile

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateProfilesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('profiles', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('email')->unique();
            $table->string('homephone');
            $table->string('cellphone');
            $table->string('address');
            $table->string('apt')->nullable();
            $table->string('city');
            $table->string('state');
            $table->string('zipcode');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('profiles');
    }
}

User Migration

<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->id();
            $table->string('name');
            $table->string('email')->unique();
            $table->timestamp('email_verified_at')->nullable();
            $table->string('password');
            $table->rememberToken();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}

Activity icon

Replied to Database Relationship

Will this limit the user to one profile?

Activity icon

Started a new Conversation Database Relationship

I want to make my user have only one profile. How can I do this in the Models? I have a User Model and Profile Model.

Would it be?

User Model

public function profile()
{
    return $this->hasOne(Profile::class);
}

Profile Model

  public function user()
    {
        return $this->belongsTo(User::class);
    }
Apr
27
1 month ago
Activity icon

Started a new Conversation The POST Method Is Not Supported For This Route. Supported Methods: GET, HEAD, PUT, PATCH, DELETE.

No matter what I do I keep getting this error.

My opening Form

<form action="{{ route('profile.store') }}" method="POST">
      @method('put')

      @csrf

Store function in controller

public function store(Request $request)
    {
      $request->validate([
                   'name'             =>      $data['name'],
                   'address'          =>      $data['address'],
                   'apt'              =>      $data['apt'],
                   'city'             =>      $data['city'],
                   'state'            =>      $data['state'],
                   'zipcode'          =>      $data['zipcode'],
                   'homephone'        =>      $data['homephone'],
                   'cellphone'        =>      $data['cellphone'],
      ]);

      Profile::create($request->all());

      return redirect()->route('profiles.index')
                      ->with('success','Profile created successfully.');
  }

my resource route

Route::resource('profile', 'ProfilesController');

Activity icon

Started a new Conversation Pulling Data Not Working Help

I have this function in my controller. It works if I put it in a foreach but if I only do {{$profile->name}}, says it doesn't exist in the data collection. What am I doing wrong?

 public function create()
       {


         $profile_id = Auth::user()->id;
         $profile = DB::table('users')
         ->where('id', '=', $profile_id)
         ->get();
          return view('profiles.create')->with('profile', $profile);
       }

Apr
23
1 month ago
Activity icon

Replied to Mail After Registration

I still keep getting that error. Here is my entire controller

<?php

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use App\User;
use App\Role;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;

use Illuminate\Support\Facades\Mail;



class RegisterController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Register Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles the registration of new users as well as their
    | validation and creation. By default this controller uses a trait to
    | provide this functionality without requiring any additional code.
    |
    */

    use RegistersUsers;

    /**
     * Where to redirect users after registration.
     *
     * @var string
     */
    protected $redirectTo = RouteServiceProvider::HOME;

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest');
    }

    /**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
    protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => ['required', 'string', 'max:255'],
            'email' => ['required', 'string', 'email', 'max:255', 'unique:users'],
            'password' => ['required', 'string', 'min:8', 'confirmed'],
        ]);
    }

    /**
     * Create a new user instance after a valid registration.
     *
     * @param  array  $data
     * @return \App\User
     */
    protected function create(array $data)
    {


 $user = User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => Hash::make($data['password']),
              $role = Role::select('id')->where('name', 'user')->first();

        $user->roles()->attach($role);
        ]);


Mail::send('newUser', function($message) use ($user) {
        $message->from('$user->email');
        $message->subject('welcome');
        $message->to('[email protected]');

         
    });

        return $user;
    }








       
      

}

Activity icon

Started a new Conversation Mail After Registration

I have this code, the registration is working but when I add the mail code, I get this error

Argument 2 passed to Illuminate\Mail\Mailer::send() must be of the type array, object given, called in C:\wamp64\www\lcsocal\vendor\laravel\framework\src\Illuminate\Mail\MailManager.php on line 463
protected function create(array $data)
    {
        $user = User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => Hash::make($data['password']),
        ]);

        $role = Role::select('id')->where('name', 'user')->first();

        $user->roles()->attach($role);
         Mail::send('newUser', function($message){
        $message->from($user->name);
        $message->subject('welcome');
        $message->to('[email protected]');
    });
        return $user;
    }

Apr
21
1 month ago
Activity icon

Started a new Conversation Get Method Is Not Supported!!!

I am using the resource route below and I am getting Get Method not supported. Also below is my form statement. Why am I getting this error?

Route::namespace('Admin')->prefix('admin')->name('admin.')->group(function(){
Route::resource('/users', 'UsersController', ['except' => ['show', 'create', 'store']]);

});
<form action="{{ route('admin.users.update', $user)}} method="POST">
       			
       			@csrf
       			{{ method_field('PUT')}}
Apr
16
1 month ago
Activity icon

Started a new Conversation Calculating Columns

I have a photo album that is working but it is creating multiple rows instead of columns. How can I change this code to make 4 columns and then the next row?

<article class="grid-container">
  @foreach($albums as $album)
        <div class="grid-x grid-margin-x small-up-2 medium-up-3 large-up-4">
          <div class="cell">
            <img class="thumbnail" src="https://placehold.it/550x550">
            <h5>{{$album->name}}</h5>
          </div>

        </div>
        @endforeach
      </article>
Mar
10
2 months ago
Activity icon

Awarded Best Reply on View To PDF ERror

I figured it out. My bootstrap CSS was making it not work. I took all the CSS out and am doing inline css. Its working. How do I get images to show up

Mar
09
2 months ago
Activity icon

Replied to View To PDF ERror

I figured it out. My bootstrap CSS was making it not work. I took all the CSS out and am doing inline css. Its working. How do I get images to show up