florent6001

florent6001

Développeur Web Freelance at France

Member Since 1 Year Ago

Experience Points
3,210
Total
Experience

1,790 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
23
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start-engines Created with Sketch.

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • first-thousand Created with Sketch.

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • 1-year Created with Sketch.

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • 2-years Created with Sketch.

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • 3-years Created with Sketch.

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • 4-years Created with Sketch.

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • 5-years Created with Sketch.

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • school-session Created with Sketch.

    School In Session

    Earned when at least one Laracasts series has been fully completed.

  • welcome-newcomer Created with Sketch.

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • full-time-student Created with Sketch.

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • pay-it-forward Created with Sketch.

    Pay It Forward

    Earned once you receive your first "Best Reply" award on the Laracasts forum.

  • subscriber-token Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer-token Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • lara-evanghelist Created with Sketch.

    Laracasts Evangelist

    Earned if you share a link to Laracasts on social media. Please email [email protected] with your username and post URL to be awarded this badge.

  • chatty-cathy Created with Sketch.

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • lara-veteran Created with Sketch.

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • 10k-strong Created with Sketch.

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • lara-master Created with Sketch.

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • laracasts-tutor Created with Sketch.

    Laracasts Tutor

    Earned once your "Best Reply" award count is 100 or more.

  • laracasts-sensei Created with Sketch.

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • top-50 Created with Sketch.

    Top 50

    Earned once your experience points ranks in the top 50 of all Laracasts users.

Level 1
3,210 XP
08 Aug
1 month ago

florent6001 left a reply on What Is The Difference Between Subscription And Free Plan ?

Yes but i want a list of video i don't have access. For choose if i subscribe or no

florent6001 left a reply on What Is The Difference Between Subscription And Free Plan ?

Oh. And i can see thé list of thé vidéo ?

florent6001 started a new conversation What Is The Difference Between Subscription And Free Plan ?

Hi, someone can tell me the difference between subscription and free plan ?

i'm on free plan and i can watch video as well and create post on forum. I can do all i want for moment.

Why become premium so?

florent6001 left a reply on Google Place API And Laravel

Here is a screenshot :

https://i.stack.imgur.com/n1eui.png

I have the same error even it's i wrap my code in the content block

florent6001 left a reply on Google Place API And Laravel

Yes im sure i tryied with an other api and same problem...

07 Aug
1 month ago

florent6001 started a new conversation Google Place API And Laravel

I have a problem with the Google Places API, i think the script is loading too fast or i don't know. When i load the page the script is doesn't work (no error in console) and when i copy paste the script in the console developer it's work great.

I tried to wrap my script into this for make sure the page is loading :

<script>
(function() {
 // My script
})();
</script>

But it's not working too. Here is my complete code :


@section('content')
                    <form method="POST" action="{{ route('register') }}">
                        @csrf
                        <div class="form-group row">
                            <label for="city" class="col-md-4 col-form-label text-md-right">Ville de résidence</label>

                            <div class="col-md-6">
                                <input id="city" type="text" class="form-control @error('city') is-invalid @enderror" name="city" value="{{ old('city') }}" required autocomplete="off">

                                @error('city')
                                    <span class="invalid-feedback" role="alert">
                                        <strong>{{ $message }}</strong>
                                    </span>
                                @enderror
                            </div>
                        </div>
</form>
@endsection

@section('javascript')
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=MY_APIç_REMOVED_FOR_LARACAST&libraries=places"></script>

<script>
    var input = document.getElementById('city');
    var autocomplete = new google.maps.places.Autocomplete(input,{types: ['(cities)']});
    google.maps.event.addListener(autocomplete, 'place_changed', function(){
         var place = autocomplete.getPlace();
      })
</script>

@endsection

I just want to make work the autocomplete.

Thank you.

05 Aug
1 month ago

florent6001 left a reply on Where Are You All From?

Salut le français !

01 Aug
1 month ago
31 Jul
1 month ago

florent6001 left a reply on Command (StoreAs) Is Not Available For Driver (Gd). On Image Upload With Intervention

Ok changing the save fonction finally work :

public function store(Request $request)
{
    // Génération du slug et sauvegarde de l'original
    $slug = Str::slug($request->title);
    $request->file('image')->storeAs('images/achievements/', $slug . '.' . $request->image->extension());

    $thumbnail = InterventionImage::make($request->image)->fit(273, 270);
    $thumbnail->save('images/achievements/'. $slug . '-thumbnail.' . $request->image->extension());
}

florent6001 left a reply on Command (StoreAs) Is Not Available For Driver (Gd). On Image Upload With Intervention

So here is my code now whith your suggestion :

public function store(Request $request)
{
    // Génération du slug et sauvegarde de l'original
    $slug = Str::slug($request->title);
    $request->file('image')->storeAs('images/achievements/', $slug . '.' . $request->image->extension());

    $thumbnail = InterventionImage::make($request->image)->fit(273, 270)->encode();
    $thumbnail->save()->storeAs('images/achievements/', $slug . '-thumbnail.' . $request->image->extension());
    // $thumbnail->save('images/achievements/', $slug . '-thumbnail.' . $request->image->extension());
}

And the error :

Encoding format (tmp) is not supported.

florent6001 left a reply on Command (StoreAs) Is Not Available For Driver (Gd). On Image Upload With Intervention

@indpurvesh Thank you,

I now have this error :

Can't write image data to path (images/achievements/)

florent6001 started a new conversation Command (StoreAs) Is Not Available For Driver (Gd). On Image Upload With Intervention

Hi all,

I have this error when i try to generate a thumbnail :

Command (StoreAs) is not available for driver (Gd).

Here is my function :

public function store(Request $request)
{
    // Generate a slug and store the original file
    $slug = Str::slug($request->title);
    $request->file('image')->storeAs('images/achievements/', $slug . '.' . $request->image->extension());

// Generate and store the thumbnail
    $thumbnail = InterventionImage::make($request->image)->fit(273, 270)->encode();
    $thumbnail->storeAs('images/achievements/', $slug . '-thumbnail.' . $request->image->extension()); // This one is the error
}
30 Jul
1 month ago

florent6001 left a reply on Which Cloud Ide Do You Use ?

Thank you !

CodeTasty have a desktop application as i can see here : https://codetasty.com/

I think it's more fast so.

I will take a look tonight.

Thank's

florent6001 started a new conversation Which Cloud Ide Do You Use ?

Hi all,

I use https://codeanywhere.com/ for work on my website everywhere, in any computer.

Do you know a cloud ide like this with better auto completion ? Cause not really well. Maybe a codeanywhere alternative with an ide like vscode ?

I need a Free to use. With FTP / SFTP Connection and ssh.

Thank you

29 Jul
1 month ago

florent6001 left a reply on Empty Varible On Edit Function

Work's well with Achievement_Category, thank you !

28 Jul
1 month ago

florent6001 left a reply on Empty Varible On Edit Function

Route::resource('/achievements-categories', 'AchievementCategoryController');

Here is my route

florent6001 left a reply on Empty Varible On Edit Function

The create work well

florent6001 started a new conversation Empty Varible On Edit Function

Hi,

I don't know why my edit function return an empty variable.

Herei is my view and my controller :

https://pastebin.com/eJ9A1ZuU

florent6001 left a reply on Add Flash Message On Login And Logout

Error 419 - Page expired

27 Jul
1 month ago

florent6001 left a reply on Add Flash Message On Login And Logout

Argument 1 passed to App\Http\Controllers\Auth\LoginController::authenticated() must be an instance of App\Http\Controllers\Auth\Request, instance of Illuminate\Http\Request given, called in C:\laragon\www\laravel\vendor\laravel\framework\src\Illuminate\Foundation\Auth\AuthenticatesUsers.php on line 109

florent6001 left a reply on Add Flash Message On Login And Logout

I can't use like this

return with('success', 'my message') ?

florent6001 started a new conversation Add Flash Message On Login And Logout

Hi all,

How can i override the LoginController for add flashmessage on login and logout ?

Thank you.

26 Jul
1 month ago

florent6001 left a reply on Laravel Socialite Issue

Can you share your code please ?

Route and controller for linkedin auth ?

25 Jul
1 month ago

florent6001 left a reply on Do You Use Package For Your Admin Panel Or You Create It ?

For which kind of project use nova ?

I'm building a personal blog, and i don't want to splend 100$ for my personal website

florent6001 started a new conversation Do You Use Package For Your Admin Panel Or You Create It ?

Hi all,

As you know, we can generate controller with ---resource flag for generate the basic crud. So i have this question. When you create an application (for you, or for someone). Do you generate the back-end with a package like Laravel Voyager or Laravel Nova. Or you create your admin back-end ?

For moment, i don't know what to do. I don't like voyager cause it's not generating migration, and you don't have a real control in your file. And i don't like Nova cause it's paid :p

What do other developers ?

24 Jul
1 month ago

florent6001 started a new conversation Laravel + VueJS (SEO And PageSpeed Insight)

Hi all,

I'm use laravel everyday since somes week but i didn't started to use VueJS. I want to use vueJS for my personal website.

I have some question.

If i use component in VueJS, google pagespeed is like a classic HTML website ? If i use the same tag in my component than i had in my HTML Wabsite, the seo will be the same ?

I only want to know if my Google PageSpeed will be bad, same for SEO.

Thank you

florent6001 left a reply on Database Query For Footer, What Is The Best Way To Do It?

https://www.youtube.com/watch?v=n3mKQ0o1Xr4 I just watched this laracast video about View Composer. It's perfectly what i need. Thank's a lot !

florent6001 left a reply on Database Query For Footer, What Is The Best Way To Do It?

In the "Sharing Data With All Views", i can have a logic like a controller ?

Database Query, return what i want, .. ?

florent6001 started a new conversation Database Query For Footer, What Is The Best Way To Do It?

Hi all,

I have a query to do for my footer content. It's for all pages on the website (except /admin pages). For you, what is the best way to do this ?

  • Create a helper
  • Do it in the layout with Ajax
  • Do the query in every controller method (i don't think it's the best method...)
  • Other

Thank you all.

16 Jul
2 months ago

florent6001 left a reply on @if(Cookie::has('cookie_name') Return False Even If Cookie Exist

I finally found a solution.

Laravel didn't detect my cookie cause it was created in javascript. So i have to use pure PHP to detect the cookie like this

@php if(isset($_COOKIE['cookie_name'])) { echo 'cookie exist'; } @endphp

I didn't found another solution.

Thank you

florent6001 left a reply on @if(Cookie::has('cookie_name') Return False Even If Cookie Exist

I have try with Request::hasCookie too. I doesn't work too.

florent6001 started a new conversation @if(Cookie::has('cookie_name') Return False Even If Cookie Exist

Hi all,

I have this code :

@if(Cookie::has('accept_cookie'))
    Cookie exist
@else
    Cookie doesn't  exist
@endif

It always show Cookie doesn't exist, even if the cookie exist. What is wrong with this please ? My controller only show the view, doesn't pass parameters to the view :

public function index()
{
    return view('pages/homepage');
}

Thank's for your help

23 Aug
1 year ago

florent6001 left a reply on The Requested URL .. Was Not Found On This Server.

I already restarted using: service apache2 restart.

Here is the link : http://51.68.124.134/portfolio/public/

florent6001 left a reply on The Requested URL .. Was Not Found On This Server.

Here is my link:

http://51.68.124.***/portfolio/public/ public is the public folder.

i replace <Directory /var/www/> per <Directory /var/www/html/portfolio/public>

html is a folder into my www created by apache.

So: http://url/portfolio/public/ work well. But when i click on login http://url/portfolio/public/login,: You don't have permission to access /index.php on this server.

florent6001 left a reply on The Requested URL .. Was Not Found On This Server.

Same error.

I have this : The requested URL /index.php was not found on this server.

But here is my URL : /portfolio/public/login (login is the login route), the root path for laravel is portfolio

22 Aug
1 year ago

florent6001 started a new conversation The Requested URL .. Was Not Found On This Server.

I just switched my app to a debian environment. I installed

  • apache2
  • PHP Version 7.2.8-1+0~20180725124257.2+stretch~1.gbp571e56
  • phpmyadmin

And when i click on a link on my website i have: The requested URL .. was not found on this server.

The url don't work but my routes is all good. i only have this problem on this debian environment