BrownieCoffee

BrownieCoffee

Member Since 1 Year Ago

Experience Points
8,270
Total
Experience

1,730 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
2
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
8,270 XP
Oct
21
1 week ago
Activity icon

Replied to 403 Forbidden In Shared Hosting

@jlrdw Yes thank you, I didn't know that. Good to know for next projects

Activity icon

Replied to Is It Possible To Have Www.example.com Url With App In Subfolder (shared Hosting).

@marianomoreyra @rodrigo.pedra @laracoft I finally reupload my project in root shared hosting domain to avoid to add more changing to do. Thank's to all.

Activity icon

Replied to 403 Forbidden In Shared Hosting

@jlrdw My project is a fake project, what why I decided to take free shared hosting to begin. I keep to figure out why there are 403 ...

Activity icon

Replied to Font Awesome, And Images Not Displaying In My Online Project

@marianomoreyra I used processCssUrl: it given me nothing. I moved my website in root of my domain and than it works

Activity icon

Replied to 403 Forbidden In Shared Hosting

@jlrdw I'll consider it

@marianomoreyra I have reupload my project in root instead of subfolder. So I applied your solutions. At any moment I give phpinfo informations. I don't know you talking about.

To finish, I think I have choice to answer you when I can.

'you also new replied to the help'. => Can you give me one moment ? I have many problems in progress so I think you can be patient or no reply to my issues if your not in ability to wait more than 5 to have answer ...

Activity icon

Replied to 403 Forbidden In Shared Hosting

@jlrdw I'm using FTP. I don't have SSH access with free shared hosting.

Activity icon

Replied to 403 Forbidden In Shared Hosting

@laracoft I don't think it's secure to give that in a forum. What do you need ? I can try to give you the answer

Activity icon

Replied to 403 Forbidden In Shared Hosting

@laracoft It shows basic phpinfo php.7.4

Activity icon

Replied to 403 Forbidden In Shared Hosting

@laracoft I can load this file

Activity icon

Replied to 403 Forbidden In Shared Hosting

My members can create projects. When I'm trying to create one I'm optaining 403. @laracoft

The DocumentRoot ?

Activity icon

Replied to 403 Forbidden In Shared Hosting

@laracoft reupload my project but I still have 403 forbidden when I attempt to create project

Activity icon

Replied to 403 Forbidden In Shared Hosting

@laracoft I'm using planet hoster world lite

Activity icon

Replied to 403 Forbidden In Shared Hosting

Even if I'm using free shared hosting ? @laracoft

Activity icon

Replied to 403 Forbidden In Shared Hosting

@laracoft I'm agree for all points. I didn't notice there was robos.txt.

Activity icon

Replied to 403 Forbidden In Shared Hosting

@laracoft like I'm using free shared hosting for exam, I'm worried about project security.

laravel-root-files are the files in laravel project root like composer.json, composer.lock etc...

What is robot.txt?

Activity icon

Replied to 403 Forbidden In Shared Hosting

@laracoft I attempted to share shared hosting structure with implementation of laravel project

Activity icon

Replied to Font Awesome, And Images Not Displaying In My Online Project

@marianomoreyra yes I'm using it.

I ran npm run production

Activity icon

Replied to 403 Forbidden In Shared Hosting

@jlrdw @laracoft Thank for your suggestion. But I worried about security if I follow this architecture


-/ (shared hosting root)

	- laravel_root_folders/
	
	- laravel_root_files

	- shared_hosting_folders/

	- public_html/

Oct
20
1 week ago
Activity icon

Started a new Conversation Is It Possible To Have Www.example.com Url With App In Subfolder (shared Hosting).

Hi,

I have question. Actually my website url is www.example.com/folder.

Is it possible to have only www.example.com without move my app on root folder in shared hosting ?

Thank you by advance.

Bye .

Activity icon

Started a new Conversation 403 Forbidden In Shared Hosting

Hi guys,

I definitivly have problem with my online website.

I'm obtaining 403 forbidden when I'm attempting to create project.

I have my app strucure like below

- /
	- goshr-core ( app folders and files except `public/` )
	-public_html/
		- goshr ( public content inside this folder)

I even don't know why.

Can you help me please?

Thank you in advance and S.U.+

Activity icon

Awarded Best Reply on Get Value Multiple Radio

@sinnbeck @snapey Hi. I found error.

I called wrong Request facade.

It works now.

Activity icon

Replied to Get Value Multiple Radio

@sinnbeck @snapey Hi. I found error.

I called wrong Request facade.

It works now.

Oct
18
1 week ago
Activity icon

Replied to Get Value Multiple Radio

@sinnbeck Yes That inside POST form. I'm not using ajax/js

Activity icon

Replied to Font Awesome, And Images Not Displaying In My Online Project

@sinnbeck sure

<IfModule mod_rewrite.c>
   <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]
</IfModule>



Activity icon

Replied to Get Value Multiple Radio

@sinnbeck yes ( I posted the wrong code )

Activity icon

Started a new Conversation Get Value Multiple Radio

Hi there,

I'm trying to build a quiz and there are 5 questions. Each question has 3 choices and 1 choice is correct. 1 selection is possible.

I'm trying to get the selected choices but my request()->all(); return empty array ....

Can you help me please?

Thank you

my html

     <div class="quiz-box__questions-list">
                @foreach($quiz->questions as $key => $question)

                <div class="quiz-box__question-box">
                    <span class="quiz-box__question-number">Question {{$question->question_identifier .' / '. $quiz->questions->count() }}</span>
                    <p class="quiz-box__question">{{$question->question}}</p>
                    @if(!empty($question->illustration))
                    <figure>
                        <img class="quiz-box__question-illustration" src="{{$question->illustration}}" alt="">
                    </figure>
                    @endif
                    <div class="quiz-box__choices-list">

                        @php
                        $choices = App\Models\Choice::where('question_identifier', $question->question_identifier)->where('quiz_id', $quiz->id)->get();
                        @endphp

                        @foreach($choices->shuffle()->all() as $choice)

                        <label class="quiz-box__choice uk-card uk-card-default">
                            <input class="quiz-box__radio" type="radio" name="question_{{$question->question_identifier}}_choice" value="{{$choice->id}}">
                            <div class="quiz-box__choice-description">
                                <div class="quiz-box__choice-letter-box">
                                    A
                                </div>
                                <div class="quiz-box__choice-answer-box">
                                    <p class="quiz-box__choice-answer">{{$choice->choice}}</p>
                                </div>
                            </div>
                        </label>
                        @endforeach
                    </div>
                    <div class="uk-alert-danger" uk-alert>
                        <a class="uk-alert-close"></a>
                        <p>lorem ipsum</p>
                    </div>
                </div>
                <hr class="quiz-box__divider">
                @endforeach
            </div>

Activity icon

Replied to Font Awesome, And Images Not Displaying In My Online Project

@sinnbeck the home page doesn't works and I don't know why. I tryed your piece of code on my .htaccess and it fails too.

Oct
17
1 week ago
Activity icon

Replied to Font Awesome, And Images Not Displaying In My Online Project

@sinnbeck sure ! http://www.goshr.go.yo.fr/goshr/

@jlrdw my folder structure on shared hosting

- /
	- goshr-core/ (all folder and files exept public/ from my app)

	- public_html/
		- goshr ( content of the public/ from my app)
Oct
16
1 week ago
Activity icon

Replied to Font Awesome, And Images Not Displaying In My Online Project

@marianomoreyra Hi. I have no ssl with my free hosting I did deployment via FTP

Activity icon

Started a new Conversation Font Awesome, And Images Not Displaying In My Online Project

Hi there,

It's me again, my problem is in the title... Do you have any suggestion please?

I ran npm run production and optimized too

Thank you in advance.

Activity icon

Awarded Best Reply on There Is No Existing Directory At "/var/www/html/Goshr/storage/logs" And It Could Not Be Created: Permission Denied

Since this forum : https://www.tfzx.net/article/2728991.html

php artisan optimize:clear And

Delete bootstrap/cache/config.php Delete all log files in storage/logs.

Activity icon

Replied to There Is No Existing Directory At "/var/www/html/Goshr/storage/logs" And It Could Not Be Created: Permission Denied

Since this forum : https://www.tfzx.net/article/2728991.html

php artisan optimize:clear And

Delete bootstrap/cache/config.php Delete all log files in storage/logs.

Activity icon

Started a new Conversation There Is No Existing Directory At "/var/www/html/Goshr/storage/logs" And It Could Not Be Created: Permission Denied

Hi there,

I'm deploying my project on shared hosting.

here it's my folder

- /
	- myapp-core ( content of my app folder except "public" )

	-public_html
		-myapp (content of my app public folder)
		

I have this Symfony Exception There is no existing directory at "/var/www/html/Goshr/storage/logs" and it could not be created: Permission denied

my folders are in 755 (my storage too) permission and my files, 655. the permission are given to www-data www-data:www-data .

I optimized my app but I have still this exception.

Can you help me please ? Thank you and S.U.+

Activity icon

Replied to HTTP ERROR 500 Laravel Shared Hosting (planet Hoster )

@snapey @laracoft @jlrdw Okay I did a fresh reinstall. Now I have Symphony error : There is no existing directory at "/var/www/html/Goshr/storage/logs" and it could not be created: Permission denied

EDIT: I did : php artisan route:clear

php artisan config:clear

php artisan cache:clear

Oct
10
2 weeks ago
Activity icon

Replied to HTTP ERROR 500 Laravel Shared Hosting (planet Hoster )

@jlrdw @laracoft hi both of you. I had problem with my deployment. I'll retry later.

Oct
06
3 weeks ago
Activity icon

Replied to HTTP ERROR 500 Laravel Shared Hosting (planet Hoster )

@snapey my storage is writable.

@laracoft Ok I'll attempt

Activity icon

Replied to HTTP ERROR 500 Laravel Shared Hosting (planet Hoster )

@laracoft ok thank you.

My steps are the same on the video.... I did the good things.

Activity icon

Replied to HTTP ERROR 500 Laravel Shared Hosting (planet Hoster )

@laracoft I follow many threads on stackoverflow and medium about deployment in shared hosting. This steps recommended to move folders and files inside 'public' in 'public_html' and the others folders and files on project root inside a created folder in host.

So I edited my public for the paths.

@snapey It's not an error from laravel. This error in given by chrome.

Activity icon

Replied to HTTP ERROR 500 Laravel Shared Hosting (planet Hoster )

@snapey and ... the problem is in the title.

Activity icon

Started a new Conversation HTTP ERROR 500 Laravel Shared Hosting (planet Hoster )

Hi there,

I trying to deploy my project to shared hosting ( planethoster ). I use Filezilla and actually my structure is that

- goshr
- public_html
	- index.php
	-.htacess 
	- .....

I replace

__DIR__ . '/../bootstrap/autoload.php'

to that

__DIR__ . '/../app_folder/bootstrap/autoload.php'

and same for the other declaration on index.php

here my htaccess

<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes
    </IfModule>

    RewriteEngine On

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    #RewriteRule ^(.*)/$public / [L,R=301]

    # Redirect Trailing Slashes If Not A Folder...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} (.+)/$
    RewriteRule ^ %1 [L,R=301]
    

    # Send Requests To Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]


</IfModule>

Before deployment, I optimized my project and I added permissions.

Can you help me please?

Sep
29
1 month ago
Activity icon

Replied to Steps To Configure And Secure Laravel App Before Deployment

@jlrdw thank's but I would to insist about the folder permission, organization for example.

Activity icon

Started a new Conversation Steps To Configure And Secure Laravel App Before Deployment

Hi there,

Do you have steps to configure and secure the laravel app before deployment like folder permissions, .htaccess, changing folder location, path in the index.php ... ?

Thank you in advance.

S.U.+

Sep
22
1 month ago
Activity icon

Replied to Fails Get The Sender Mail (Gmail)

@automica I have still nothing no sender mail to the gmail header...

Activity icon

Replied to Fails Get The Sender Mail (Gmail)

@automica Sure

Now in my email header, I have sender name, but still not his email...

ContactCnotroller.php

 public function store(StoreContact $request)
    {

        // l'email est envoyé à l'adresse mail de l'équipe du site

        Mail::to($request->email)->send(new ContactConfirmationMail());

        $message = [
            'complete_name' => $request->complete_name,
            'email'         => $request->email,
            'subject'       => $request->subject,
            'message'       => purifier($request->message)
        ];

        // dd($message['subject']);

        Mail::to('[email protected]')->send(new ContactMail($message));

Mails/ContactMail.php

<?php

namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class ContactMail extends Mailable
{
    use Queueable, SerializesModels;

    public $message;

    /**
     * Create a new message instance.
     *
     * @return void
     */
    public function __construct($message)
    {
        $this->message = $message;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->from($this->message['email'], $this->message['complete_name'])
        ->subject('Un message a été envoyé par un utilisateur')
            ->markdown('mails.message-received');
    }
}

my .env

MAIL_USERNAME= my_username
MAIL_PASSWORD= my_password
MAIL_FROM_ADDRESS= my_mail_adress
MAIL_FROM_NAME= App Name

my config/mail.php

'smtp' => [
            'transport' => 'smtp',
            'host' => env('MAIL_HOST', 'smtp.gmail.com'),
            'port' => env('MAIL_PORT', 587),
            'encryption' => env('MAIL_ENCRYPTION', 'tls'),
            'username' => env('MAIL_USERNAME', 'my_mail_adress'),
            'password' => env('MAIL_PASSWORD', 'my_password'),
            'timeout' => null,
            'auth_mode' => null,
        ],


....



  'from' => [
        'address' => env('MAIL_FROM_ADDRESS', ''),
        'name' => env('MAIL_FROM_NAME', ''),
    ],

Activity icon

Started a new Conversation Fails Get The Sender Mail (Gmail)

Hi there,

I use form to permit to users to send mail to administrators.

I mail is sended on my gmail but I cannot retrieve the sender mail on the From. I have administrator mail unstead.

I don't know if i'm clear.

Can you help me please?

Thank you.

Sep
21
1 month ago
Activity icon

Replied to What Is Equivalent To Mail Later() Helper For Notification

@laracoft ok thank you I'll try to correct that.

Activity icon

Started a new Conversation What Is Equivalent To Mail Later() Helper For Notification

Hi there,

I have this error to Expected response code 354 but got code "550", with message "550 5.7.0 Requested action not taken: too many emails per second" when I send mail notification to my users.

I would like to use an equivalent to later() helper but for notification. I attempted to use delay()

$when = Carbon::now()->addSeconds(60);

$user->notify((new SendMailToUserReferingToCreatingCategory($category, $user))->delay($when));

But I have still my error on the top.

Can I have your help please ?

Thank in advance. S.U.+

Sep
07
1 month ago
Activity icon

Started a new Conversation Problem With My Modal: Same Route For Differents Contents.

Hi there,

I use @include to repeat report modal for project, topic and comment.

modal template

<!-- * Modal * -->
<div class="modal">
    <!-- * Modal Background * -->
    <div class="modal-background"></div>

    <!-- * Card * -->
    <div class="modal-card">

        <!-- * Header * -->
        <header class="modal-card-head">
            <h1 class="modal-card-title">{{$modalTitle}}</h1>
        </header>

        <!-- * Body * -->
        <div class="modal-body">
            @yield('modal-body')

            <!-- * Content * -->
            <section class="modal-card-body">
                @yield('modal-content')
            </section>

            <!-- * Footer * -->
            @yield('modal-footer')
        </div>
    </div>
    <button class="modal-close is-large is-active" aria-label="close"></button>
</div>

my report modal

@extends('templates.modals.modal-layout')

@section('modal-body')
<form action="{{$route}}" method="POST">
    @csrf
    @endsection

    @section('modal-content')
    <div style="margin-top:1rem;">
        <p class="modal-error help is-danger"></p>

        @foreach($motives as $motive)
        <label class="checkbox" style="display: block;line-height:2.5rem;">
            <input type="checkbox" name="motives[]" value="{{$motive->id}}">
            {{$motive->name}}
        </label>
        @endforeach
    </div>
    @endsection

    @section('modal-footer')
    <footer class="modal-card-foot">
        <button type="submit" class="modal-submit-button button is-rounded is-success">{{$confirmChoice}}</button>
        <button type="button" class="modal-close-button button is-rounded">Annuler</button>
    </footer>
</form>
@endsection

my comments.blade.php file

@include('templates.modals.report-modal', [
                            'modalId' => $comment->id,
                            'modalTitle' => 'Signaler ce commentaire',
                            'modalText' => 'Coche les raisons de ton signalement',
                            'route' => route('reports.storeCommentReport', ['comment' => $comment, 'user' => auth()->user()]),
                            'confirmChoice' => 'Je signale'
                            ])

my projects.blade.php file

@include('templates.modals.deletion-modal', [
                'modalTitle' => 'Supprimer ce projet',
                'question' => 'Souhaites-tu vraiment supprimer ce projet ?',
                'complementaryText' => '',
                'route' => route('projects.delete', [$project, $slug]),
                'confirmChoice' => 'Supprimer le projet'
                ])

my topics.blade.php

@include('templates.modals.report-modal', [
                            'modalId' => $topic->id,
                            'modalTitle' => 'Signaler cette question',
                            'modalText' => 'Coche les raisons de ton signalement',
                            'route' => route('reports.storeTopicReport', ['topic' => $topic, 'user' => auth()->user()]),
                            'confirmChoice' => 'Je signale'
                            ])

I have problem. Changes are ok for titleModal and others parameters except for the route...

If I click on the report-comment-btn. I have the project report route instead of comment report route.

I checked my route and there're ok.

I don't know why the route don't change .... Do you have any idea ?