adamjhn

Experience

10,450

0 Best Reply Awards

  • Member Since 3 Months Ago
  • 9 Lessons Completed
  • 0 Favorites

19th July, 2018

adamjhn left a reply on Show Only A List Item Per Registration • 2 days ago

Like " @if ($nextRegistration->participants->registration_type()->contains('certificate_available', 'Y')) [ " it shows "Method registration_type does not exist."

18th July, 2018

adamjhn left a reply on Show Only A List Item Per Registration • 3 days ago

The certificate_available is a column of the registration_types table. But with " @if ($nextRegistration->participants->registration_type->contains('certificate_available', 'Y')) [ " shows Property [registrationType] does not exist on this collection instance". –

adamjhn left a reply on Show Only A List Item Per Registration • 3 days ago

There are 3 registrations in the database, the " {{dump($nextRegistration->participants->contains('certificate_available', 'Y'))}} " shows "false" for the 3 list items (3 registrations).

adamjhn left a reply on Show Only A List Item Per Registration • 3 days ago

Thanks but using that contains approach the "Download certificate" is not appearing for none registration but also dont shows error.

adamjhn started a new conversation Show Only A List Item Per Registration • 3 days ago

I have this code to show the next registrations of a user in a conference:

    $nextRegistrations = $user->registrations()
              ->with('participants.registration_type')
              ->whereHas(
                  'conference',
                  function ($query) {
                      $query->where('end_date', '>', now());
                  }
              )->paginate($pageLimit);

Then, in the view I want to show for each registration a link "Get certificate" if the column "available_certificate" of the "registration_types" table has the value "Y".

So I have the code below but there is an issue when a registration has more than 1 participant, for example if the registration has 2 participants associated with it, it appears two list items and not only one list item. Do you know how to solve that, how to show only 1 list item idependently of the number of participants associated with that registration?

    <ul class="list-group events-list">
    @foreach($nextRegistrations as $nextRegistration)
        @foreach($nextRegistration->participants as $participant)
            @if(!empty($nextRegistration->conference) || !empty($nextRegistration->conference->start_date))
                    @if (($participant->registration_type->certificate_available == 'Y')                                                                
                    <a href="{{route('conferences.certificateInfo',
                    [
                    'regID'=> $nextRegistration->id])}}"
                           class="btn btn-primary ml-2">Download certificate</a>
                    @endif
                </li>
            @endif
        @endforeach
    @endforeach
    
    </ul>

adamjhn left a reply on Get Tinymce Content In A Pdf Using Dompdf: Image Not Found Or Type Unknown • 3 days ago

yes, its like this:

 tinymce.init({
                    selector:'textarea',
                    plugins: 'image code link',
                    relative_urls: false,
                    document_base_url : "https://proj.test/img/",

                    file_browser_callback: function(field_name, url, type, win) {
                        // trigger file upload form
                        if (type == 'image') $('#formUpload input').click();
                    }
                });

adamjhn left a reply on Get Tinymce Content In A Pdf Using Dompdf: Image Not Found Or Type Unknown • 3 days ago

Thanks, but here "https://www.tiny.cloud/docs/configure/url-handling/"says "If this option is set to true, all URLs returned from the MCFileManager will be relative from the specified document_base_url. If it's set to false all URLs will be converted to absolute URLs." but Im already using " relative_urls: false, " but dont works.

13th July, 2018

adamjhn left a reply on Login With Facebook Is Not Working • 1 week ago

In the Redirect URI to Check if I insert "https://....ngrok.io/auth/facebook/callback" it appear "This is a valid redirect URI for this application".

adamjhn left a reply on Login With Facebook Is Not Working (How To Debug This Issue?) • 1 week ago

Do you know how the issue can be debuged besides check if the urls are correct?

adamjhn left a reply on Login With Facebook: The Domain Of This URL Isn't Included In The App's Domains (but They Are Included) • 1 week ago

No, its not working, but in the app setttings the url are defined like that so I dont understand why in the redirect_uri appears that "http://app.test".

adamjhn left a reply on Login With Facebook: The Domain Of This URL Isn't Included In The App's Domains (but They Are Included) • 1 week ago

Thanks, to create the ngrok url I used valet share and generated an http and an https url. In facebook settings I defiend the https url:

In Facebook I just edited the basic settings like:


 App Domains defined: https://44....ngrok.io/
    
Site URL: https://44...ngrok.io/facebook/auth/callback

Valid Oauth redirect URIs: https://44...ngrok.io/facebook/auth/callback and https://44...ngrok.io/ 


adamjhn left a reply on Login With Facebook: The Domain Of This URL Isn't Included In The App's Domains (but They Are Included) • 1 week ago

Thanks, but Im using ngrok, on local machine but using ngrok, so it should be public right? And the url´s in the app settings were defined with the ngrok url´s.

adamjhn left a reply on Get Tinymce Content In A Pdf Using Dompdf: Image Not Found Or Type Unknown • 1 week ago

But its that part that Im not understanding. It seems that to solve the issue is necessary to use the full url. But the user in the textarea clicks in the upload image button, selects a image and then click in the form submit button and the content of the textrea is stored in the database. But how to change this url of the image "

test content

" to the full url? Because that image is inserted by the tinymce plugin no?

adamjhn left a reply on Get Tinymce Content In A Pdf Using Dompdf: Image Not Found Or Type Unknown • 1 week ago

But the image is already stored in the server, with the question code the $certificate->content has the content that can have or not images, the issue is when it has images, like:

<p>test content<img src="/img/image_100.jpeg" width="1200" height="900" /></p>

question code:

 //get the certificate associated with the regitration type
   $certificateContent = RegistrationType::with('certificate')->where('id', $request->registrationType)->first();

    $pdf = app()->make('dompdf.wrapper');

    // load a HTML in the pdf
    $pdf->loadHTML($certificateContent->certificate->content);

   // dowload pdf
    return $pdf->download('invoice.pdf');

adamjhn left a reply on Get Tinymce Content In A Pdf Using Dompdf: Image Not Found Or Type Unknown • 1 week ago

Thanks, but I already use "setOptions(['isHtml5ParserEnabled' => true, 'isRemoteEnabled' => true])" but also dont works with that. Then as I said in the quetion, it seems that the issue can be because is necessary to change the url path of the image. But Im not understanding how to do that since the user only selects a image in the the tinymce textarea how to chnge the absolute path of that image.

adamjhn left a reply on Get Tinymce Content In A Pdf Using Dompdf: Image Not Found Or Type Unknown • 1 week ago

It seems that is necessary to change the url path of the image, but using tinymce, is only necessary to click in the browse image button and selet an image, so do you know how to change the url path of the image?

adamjhn left a reply on Login With Facebook: The Domain Of This URL Isn't Included In The App's Domains • 1 week ago

Routes:


Route::get('auth/{provider}', [
    'uses' => '[email protected]',
    'as' => 'social.auth'
]);

Route::get('auth/{provider}/callback', [
    'uses' => '[email protected]',
]);


services.php:

'facebook' => [
        'client_id' => '...',
        'client_secret' => '...',
        'redirect' => 'https://....ngrok.io/auth/facebook/callback'
    ]

OauthController:

class OauthController extends Controller
{
    
    public function redirectToProvider($provider)
    {
        return Socialite::driver($provider)->redirect();

    }

 
    public function handleProviderCallback($provider)
    {
        $userFace = Socialite::driver($provider)->user();
        // $user->token;

        $findUser = User::where('email', $userFace->email)->first();

        if($findUser){
            Auth::login($findUser);
        }else{
            $user = new User;
            $user->name = $userFace->name;
            $user->surname = "";
            $user->email = $userFace->email;
            $user->password = bcrypt($user->name);
            $user->save();
            Auth::login($user);
        }
    }
}

adamjhn left a reply on Get Tinymce Content In A Pdf Using Dompdf: Image Not Found Or Type Unknown • 1 week ago

Get tinymce content in a pdf using dompdf: Image not found or type unknown

12th July, 2018

adamjhn started a new conversation Get Tinymce Content In A Pdf Using Dompdf: Image Not Found Or Type Unknown • 1 week ago

Im using tinymce with image upload using the package "laravel-tinymce-simple-imageupload". But when the user enters some content in the textarea and click in the form submit button I want to put the content in the textarea in a pdf file so I have the code below.

The issue is that in the pdf file, if is inserted an image in the textarea, the image dont appear in the pdf and it shows "Image not found or type unknown".

Do you know what can be the issue?

The image is stored like this in the content column of the certificates table:

    <p>test<img src="/img/image_1530423144_Yn4tAJwZmzcbb82UOGHo07eIQsiGfzdbBjh10r.jpeg" alt="" width="1200" height="900" /></p>

Code to get the pdf:

    $certificateContent = RegistrationType::with('certificate')->where('id', $request->registrationType)->first();
    $pdf = app()->make('dompdf.wrapper');
    $pdf->loadHTML($certificateContent->certificate->content);
    return $pdf->download('invoice.pdf');

adamjhn started a new conversation Login With Facebook: The Domain Of This URL Isn't Included In The App's Domains • 1 week ago

I want to use login with facebook, so when the user is in the ogin page "https://...ngrok.io/login" there is a button:

 <a href="{{route('social.auth',['provider' => 'facebook'])}}">
Login with Facebook</a>

When the user clicks in the link he is redirected to "https://www.facebook.com/v3.0/dialog/oauth?client_id=....&redirect_uri=...proj.test..." and appears:

"Can't Load URL: The domain of this URL isn't included in the app's domains. To be able to load this URL, add all domains and subdomains of your app to the App Domains field in your app settings."

Do you know what can be the error?

In the App Domains I have:


https://...ngrok.io/

In the site URL I have:


https://...ngrok.io/facebook/auth/callback

Maybe the issue is that the domain and site url defined in the settings is like "https://....ngrok.io/ but, as it is above, the user is redirected to a url that has a parameter "redirect_uri" with "proj.test".

The "proj.test" is not configured in the settings, before I had that in the settings but to test with ngrok I remove the "proj.test" and add just the ngrok.io uri´s like above. So I dont understand why the in the redirect_uri it appears "proj.test".

adamjhn left a reply on Why The Pdf Appears Without The Certificate Content? • 1 week ago

Shows:

RegistrationType {#311 ▼
...
  #attributes: array:11 [▼
    "id" => 1
    "name" => "general"
    "description" => "description"
    "price" => 0
    "conference_id" => 1
    "certificate_id" => 1
    "created_at" => "2018-07-11 15:51:21"
    "updated_at" => "2018-07-11 16:25:52"
  ]
...
  #relations: array:1 [▼
    "certificate" => Certificate {#327 ▼
      ....
      #attributes: array:4 [▼
        "id" => 1
        "content" => "<p>test</p>"
        "created_at" => "2018-07-11 16:25:43"
        "updated_at" => "2018-07-11 16:25:43"
      ]
...
    }
  ]
...
}

adamjhn left a reply on Why The Pdf Appears Without The Certificate Content? • 1 week ago

Because the other was related to get the certificate content in a pdf but the pdf appears blank which seems another issue, since the code to load the html in the pdf dont show any error.

adamjhn started a new conversation Why The Pdf Appears Without The Certificate Content? • 1 week ago

This code is used to get the content stored in the column "content" of the certificates table in a pdf file.

The issue is that the pdf is blank instead of have the content of the certificate.

Do you know why?



 $certificateContent = RegistrationType::with('certificate')->where('id', $request->send_to)->first();
        $pdf = app()->make('dompdf.wrapper');

        $pdf->loadHTML($certificateContent->content);
        

        return $pdf->download('invoice.pdf');

adamjhn left a reply on Store HTML Content In A Pdf • 1 week ago

Thanks, but still appear a blank pdf.

adamjhn left a reply on Store HTML Content In A Pdf • 1 week ago

It shows a blank pdf because I was using " $pdf->loadHTML($certificateContet);" instead of " $pdf->loadHTML($certificateContent->content);". But with " $pdf->loadHTML($certificateContent->content);" shows "Trying to get property of non-object"..

adamjhn left a reply on Store HTML Content In A Pdf • 1 week ago

Thanks, now dont appears any error, but the pdf is blank, dont have the certificate content.

The certificate content is html like "

test content

".

adamjhn left a reply on Store HTML Content In A Pdf • 1 week ago

Thanks, but it appears always "Object of class Illuminate\Database\Eloquent\Builder could not be converted to string ".

I have this in app.php "'PDF' => Barryvdh\DomPDF\Facade::class,".

adamjhn left a reply on Store HTML Content In A Pdf • 1 week ago

Thanks, but like that it shows "Class 'App\Http\Controllers\App' not found". Is necessary to import "use Illuminate\Support\Facades\App; "?

adamjhn left a reply on Store HTML Content In A Pdf • 1 week ago

Thanks, like that it shows "Non-static method Barryvdh\DomPDF\PDF::loadHTML() should not be called statically".

$certificateContent = RegistrationType::with('certificate')->where('id', $request->send_to);

        $pdf = PDF::loadHTML($certificateContent);

adamjhn started a new conversation Put Html Content In A Pdf • 1 week ago

I have this code to get the content of a certificate:

$certificate = RegistrationType::find($request->send_to)->certificate;
$certificateContent = RegistrationType::with('certificate')->where('id', $request->send_to);
dd($certificateContent->content);

The content is stored in the "content" column of the certificates table, can be for example:

<p>certificate content</p>

Do you know how put this content in a pdf using the laravel-dompdf?

To put the content in a view in a pdf can be like below but Im not understanding how to put the html content stored in the content column into a pdf.

$pdf = PDF::loadView('pdf.invoice', compact('invoice'));
return $pdf->download('invoice.pdf');


adamjhn left a reply on Why The Query Shows "Property [certificate] Does Not Exist On This Collection Instance."? • 1 week ago

No, in RegistrationType model I just have this methods:

 public function conference(){
        return $this->belongsTo('App\Conference');
    }

    public function questions(){
        return $this->belongsToMany('App\Question', 'registration_type_questions')->withPivot(['required']);;
    }

    public function participants(){
        return $this->hasMany('App\Participant');
    }

    public function presentPrice(){
        return money_format('%i€', $this->price);
    }

    public function registrations(){
        return $this->belongsToMany('App\Registration', 'registration_registration_types');
    }

    public function certificate(){
        return $this->belongsTo('App\Certificate', 'certificate_id');
    }

adamjhn left a reply on Why The Query Shows "Property [certificate] Does Not Exist On This Collection Instance."? • 1 week ago

Thanks, with only "$certificate = RegistrationType::find($sendTo);" dont shows error, shows:

Collection {#308 ▼
  #items: array:1 [▼
    0 => RegistrationType {#300 ▼
      #fillable: array:7 [▶]
      #dates: array:2 [▶]
      #connection: "mysql"
      #table: null
      #primaryKey: "id"
      #keyType: "int"
      +incrementing: true
      #with: []
      #withCount: []
      #perPage: 15
      +exists: true
      +wasRecentlyCreated: false
      #attributes: array:11 [▶]
      #original: array:11 [▶]
      #changes: []
      #casts: []
      #dateFormat: null
      #appends: []
      #dispatchesEvents: []
      #observables: []
      #relations: []
      #touches: []
      +timestamps: true
      #hidden: []
      #visible: []
      #guarded: array:1 [▶]
    }
  ]
}

adamjhn started a new conversation Why The Query Shows "Property [certificate] Does Not Exist On This Collection Instance."? • 1 week ago

Do you know why this query is not working? To get the certificate content associated with the selected registration type.

            $certificate = RegistrationType::find($sendTo)->certificate;
            dd($certificate);

Certificate model:

class Certificate extends Model
{
    protected $fillable = ['content'];

    public function registration_types(){
        return $this->hasMany('App\RegistrationType', 'certificate_id');
    }
}

RegistrationType model:

 public function certificate(){
        return $this->belongsTo('App\Certificate', 'certificate_id');
    }

11th July, 2018

adamjhn left a reply on Why It Appears The Error ERR_TOO_MANY_REDIRECTS When User Access The Send Certificate Page? • 1 week ago

But how the validation fails if the user cant access the page and so he cant fill in the form and click in the submit button?

adamjhn left a reply on Why It Appears The Error ERR_TOO_MANY_REDIRECTS When User Access The Send Certificate Page? • 1 week ago

Same issue with "$conference = Conference::with('registrationTypes.certificate')->findOrFail($id);".

Routes:


    Route::get('conference/{id}/certificates/create',
        [ 'uses' => '[email protected]', 'as'=>'certificates.create']);

    Route::get('conference/{id}/certificates/send',
        [ 'uses' => '[email protected]', 'as'=>'certificates.send']);

    
    Route::post('conference/{id}/certificates/update',
        [ 'uses' => '[email protected]', 'as'=>'certificates.update']);

Complete CertificateController:

class CertificateController extends Controller { public function create($id) {

    $conference = Conference::with('registrationTypes.certificate')->find($id);

    return view('certificates.index')->with('conference', $conference);

}


public function update(Request $request){

    $rules = [
        'registrationType' => 'required',
        'certificate_content' => 'required',
    ];


    $customMessages = [
        'registrationType.required' => 'require field',
        'certificate_content.required' => 'require field.'
    ];


    $this->validate($request, $rules, $customMessages);


    $registrationType = RegistrationType::where('id', $request->registrationType)->first();
    $certificate = $registrationType->certificate;

    // if no certificate exists for this type, create it
    if(!$certificate ) {
        $certificate = new Certificate();
    }

    $certificate->content = $request->certificate_content;
    $certificate->save();

    $registrationType->certificate_id = $certificate->id;
    $registrationType->save();

    Session::flash('success', 'Certificate configured with success.');

    return redirect()->back();

}

public function send($id, Request $request){

    $conference = Conference::with('registrationTypes.certificate')->findOrFail($id);

    $rules = [
        'send_to' => 'required',
        'subject' => 'required',
    ];


    $customMessages = [
        'send_to.required' => 'required field.',
        'subject.required' => 'required field.'
    ];


    $this->validate($request, $rules, $customMessages);

    return view('certificates.send')->with('conference', $conference);

}

}

adamjhn left a reply on Why It Appears The Error ERR_TOO_MANY_REDIRECTS When User Access The Send Certificate Page? • 1 week ago

Thanks, but how the validation fails if the form is submited? Because is not possible to access the send certificate page.

With "$conference = Conference::with('registrationTypes.certificate')->findOrFail($id);" same issue.

Full CertificateController:



class CertificateController extends Controller
{
    public function create($id)
    {

    
        $conference = Conference::with('registrationTypes.certificate')->find($id);

        return view('certificates.index')->with('conference', $conference);

    }


    public function update(Request $request){

        $rules = [
            'registrationType' => 'required',
            'certificate_content' => 'required',
        ];


        $customMessages = [
            'registrationType.required' => 'required field.',
            'certificate_content.required' => 'require field.'
        ];


        $this->validate($request, $rules, $customMessages);


        $registrationType = RegistrationType::where('id', $request->registrationType)->first();
        $certificate = $registrationType->certificate;

        
        if(!$certificate ) {
            $certificate = new Certificate();
        }

        $certificate->content = $request->certificate_content;
        $certificate->save();

        $registrationType->certificate_id = $certificate->id;
        $registrationType->save();

        Session::flash('success','Certificate configured with success.');

        return redirect()->back();

    }

    public function send($id, Request $request){

        $conference = Conference::with('registrationTypes.certificate')->findOrFail($id);

        $rules = [
            'send_to' => 'required',
            'subject' => 'required',
        ];


        $customMessages = [
            'send_to.required' => 'required field.',
            'subject.required' => 'required field.'
        ];


        $this->validate($request, $rules, $customMessages);

        return view('certificates.send')->with('conference', $conference);

    }
}



adamjhn left a reply on Why It Appears The Error ERR_TOO_MANY_REDIRECTS When User Access The Send Certificate Page? • 1 week ago

Now instead of appear the page with this "ERR_TOO_MANY_REDIRECTS" error the user is redirected to "https://proj.test/conference/1/certificates/create" instead of "https://proj.test/conference/1/certificates/send

adamjhn started a new conversation Why The User Is Redirected To The Create Certificate Page If The Rqeuest Is Validated? But Is Redirected To The Send Certificate Page If The Request Is Not Validated? • 1 week ago

I have this code below that should redirect the user to the send certificate page.

But Im not understanding why, if the code is only like below (without validation) when the user click in the "Send certificate" link is redirected to the send certificate page "https://proj.test/conference/1/certificates/send", so it works correctly:

public function send($id, Request $request){

        $conference = Conference::with('registrationTypes.certificate')->find($id);

        $this->validate($request, $rules, $customMessages);
        return view('certificates.send')->with('conference', $conference);
    }

But if its like below (with validation), instead of the user be redirected to the send certificate page is redirected to the create certificate page "https://proj.test/conference/1/certificates/create".

Do you know what can be the error?

public function send($id, Request $request){

        $conference = Conference::with('registrationTypes.certificate')->find($id);

        $rules = [
            'send_to' => 'required',
            'subject' => 'required',
        ];

        $customMessages = [
            'send_to.required' => 'send_to is required.',
            'subject.required' => 'subject is required.'
        ];
        $this->validate($request, $rules, $customMessages);
        return view('certificates.send')->with('conference', $conference);
    }

adamjhn left a reply on Show The Content Of The Certificate In Textarea • 1 week ago

It also appear "Undefined variable: certificate" in "{{ $certificate->content }} {{ old('certificate_content') }} ".

adamjhn left a reply on Show The Content Of The Certificate In Textarea • 1 week ago

Thanks, do you know why appears "expression expected" error in:

var certificate = {};
    @foreach($conference->registrationTypes as $registrationType)
        @if(!$registrationType->certificate)
            certificate[{{ $registrationType->id }}] = '';
        @else
            certificate[{{ $registrationType->id }}] = '{{ $registrationType->certificate->content }}';
        @endif
    @endforeach 

?

adamjhn started a new conversation Show The Content Of The Certificate In Textarea • 1 week ago

I have a form that shows some radio buttons, each radio button corresponds to a registration type.

The user can selected a radio button (registration type) and introduce some content in the textarea and click "Save" to associate the content introduced in the textarea with the certificate associated with the selected registration type. So I have the update() in the CertificateController for this.

My doubt is when the user select a specific registration type, how to show in the textarea the content of the certificate associated with that selected registration type (radiobutton), if the certificate content is not empty.

Like below its not working. Do you know how to properly achieve that?

Tables:


    registration_types table: id, name..., conference_id, certificate_id
    certificates: id, content

CertificateController:

    class CertificateController extends Controller{
    
         public function create($id){
            $conference = Conference::find($id);
            $registrationType = RegistrationType::where('conference_id', $id)->get();
            $certificateID =    RegistrationType::where('conference_id', $id)->pluck('certificate_id')->first();
            $certificate = Certificate::where('id', $certificateID);
    
            return view('certificates.index')->with('conference', $conference)->with('registrationType', $registrationType)->with('certificate', $certificate);
        }
    
        public function update(Request $request){
            $certificateID = RegistrationType::where('id', $request->radiobutton)->pluck('certificate_id')->first();
    
            // if is not null just update the content of the certificate
            if($certificateID){
                $certificate = Certificate::find($certificateID);
                $certificate->content = $request->certificate_content;
                $certificate->save();
            }
            // else create a new certificate
            else{
                $certificate = Certificate::create([
                    'content' => $request->certificate_content,
                ]);
            }
    
            $registrationTypeToUpdate = RegistrationType::find($request->radiobutton);
            $registrationTypeToUpdate->certificate_id = $certificate->id;
            $registrationTypeToUpdate->save();
    
            Session::flash('success','Certificate configured with success.');
    
            return redirect()->back();
    
        }
    }

Form in the view:


    <form method="post" class="clearfix" action="{{route('certificates.update', ['conference_id' => $conference->id])}}" enctype="multipart/form-data">
    {{csrf_field()}}
    <div class="form-row">
        <div class="form-group col">
            <label>Certificate</label>
                @foreach($registrationType as $rtype)
                    <div class="form-check">
                        <input
                                {{ (old('radiobutton') && old('radiobutton') == $rtype->id) ? 'checked' : '' }}
                                class="form-check-input radio" type="radio" name="radiobutton"
                                value="{{ $rtype->id }}" id="{{$rtype->id}}">
                        <label class="form-check-label" for="exampleRadios1">
                            Certificate for the registration type "{{$rtype->name}}"
                        </label>
                    </div>
                @endforeach
            </div>
        </div>
    
        <div class="form-group">
            <labe>Configure the certificate for the selected registration type</label>
            <textarea class="form-control" name="certificate_content" id="" rows="3">{{ $certificate->content }} {{ old('certificate_content') }} </textarea>
        </div>
        <div>
            <input type="submit" class="btn btn-primary btn" value="Save"/>
        </div>
    </form>

10th July, 2018

adamjhn left a reply on Using Valet With Https The Layout Appear Without Styling • 1 week ago

Thanks, like that the css works. But for example the user acess the homepage and it is using https but then the user click in the "Login" link and the user is redirected to the login page but in this page is http not https, do you know why? Also in the register page is http not https. But for example in the "Search conferences" page is https. It seems that only in the login and register page the https dont works.

<link href="/css/app.css" rel="stylesheet" type="text/css">
<link href="/css/toastr.min.css" rel="stylesheet" type="text/css">

adamjhn left a reply on Using Valet With Https The Layout Appear Without Styling • 1 week ago

Yes the images appear, with this html:

<img class="card-img-top" src="{{ $conference->image == null ? '/img/5.png' : $conference->image }}"

To load the css I have:

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <title>Laravel</title>

    <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <link href="{{url('css/app.css')}}" rel="stylesheet" type="text/css">
    <link href="{{url('css/toastr.min.css')}}" rel="stylesheet" type="text/css">

adamjhn left a reply on Using Valet With Https The Layout Appear Without Styling • 1 week ago

When I use valet with http the layout appears correctly, but using the https link the layout dont appears, the content appears without styles. Do you know why?

adamjhn left a reply on Send An Email From The Auth User Email To Another Email Is Not Working Properly (from Email Address Is Not Appearing Correctly) • 1 week ago

Thanks, but like that is not working,$this->user->email is the auth user email and "$this->conference->organizer_email" is the conference organizer email. But the email from address is not the auth user email instead is the email configured in .env file in MAIL_USERNAME.

    public function build()
 {

        return $this
            ->from($this->user->email)
            ->to($this->conference->organizer_email)
            ->markdown('emails.userNotification', [
                'message' => $this->message,
                'subject' => $this->subject
            ]);
    }

adamjhn started a new conversation Using Valet With Https The Layout Appear Without Styling • 1 week ago

When I use valet with http the layout appears correctly, but using the https link the layout dont appears, the content appears without styles. Do you know why?

9th July, 2018

adamjhn left a reply on Send Mail From Email To Another Email Is Not Working Properly (from Email Address Is Not Appearing Correctly) • 1 week ago

Thanks, but like the the from is also a static email no? But what is necessary is that an authenticated user that has a specific email can send email to the conference organizer that has other specific email.

adamjhn left a reply on Mail From Is Not Working Properly (from Email Address Is Not Appearing Correctly) • 1 week ago

Thanks, sorry, but I didnt understand correctly, you are saying to use "MAIL_FROM_ADDRESS" and "MAIL_FROM_NAME" instead of "MAIL_USERNAME"?

Edit Your Profile
Update

Want to change your profile photo? We pull from gravatar.com.