youssefboudaya

youssefboudaya

Member Since 1 Year Ago

Experience Points 4,800
Experience Level 1

200 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 40
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.

09 Jul
1 week ago

youssefboudaya left a reply on Laravel Giving 500 Internal Error.

i have a 5.7 laravel application and when i run the info.php script on my server i get 7.0.33 and the laravel needs as shown in composer.json "php": "^7.1.3" .can this cause the error " This page isnt working HTTP ERROR 500 " because i tried clearing all cache changing permissions, .htaccess file ..

08 Jul
2 weeks ago

youssefboudaya left a reply on How To Correctly Deploy Laravel Project ?

What more details should i provide ?

youssefboudaya started a new conversation How To Correctly Deploy Laravel Project ?

I migrated my app from laravel 4.2 to 5.7. I created a folder under my domain copied the project files and added the database. When i try to access the home url 'www.mydomain.com/myproject/public/' i get this error This page isnt working HTTP ERROR 500. I did this many times and never faced this problem before. This is what i have already tried:

-I change user priviliges with chmod -php artisan cache:clear -php artisan config:clear -composer dump-autoload

28 Jun
3 weeks ago

youssefboudaya started a new conversation Is It Possible To Hava Two Seperate Middlewares For Frontend And Backend In Laravel ?

I have a platform created with laravel 5.4.I did the authentification process for the backend and everything is working fine.For my front pages i also to want them to be accessed when the user is only logged (client).Do i have to redirect by role or can i have seperate authentification for each side ?

13 Feb
5 months ago

youssefboudaya left a reply on Laravel Project Inside Another One

@SCREENBEETLE - that's what i decided to do

12 Feb
5 months ago

youssefboudaya left a reply on Laravel Project Inside Another One

yes i'm trying to access it from a subdirectory.the problem is that i don't know how to do that stuff this is all new to me

youssefboudaya started a new conversation Laravel Project Inside Another One

I have two Laravel projects online project1 works properly. Project2 is inside the public folder of project 1 what are the changes i should make(htaccess,index.php .. ) to make project 2 work because for now i get 403 forbidden error ?

01 Feb
5 months ago

youssefboudaya left a reply on How To Add Messenger In Laraval App ?

@GRENADECX - that's exactly what i thought.here is the link to tuto video https://www.youtube.com/watch?v=jdiiAlecXG4 !!

youssefboudaya left a reply on How To Add Messenger In Laraval App ?

@GRENADECX - it is actually easy to integrate worked like a charm !!

31 Jan
5 months ago

youssefboudaya started a new conversation How To Add Messenger In Laraval App ?

I have a website of a brand created by laravel 5.4.Many customers visit this site and may have question to ask.So i need to add in the homepage like a messenger(facebook) popup so the visitor can send a message to the official facebook page of the brand as if it was sent inside facebook .Is it possible to do so ?

18 Jan
6 months ago

youssefboudaya left a reply on How To Secure My Laravel App ?

Finally i decided to upgrade to php 7.2 and laravel 5.6(because the firewall package is not compatible with 5.7).I am worried about the upgrading process because it's my first time i'll have to discuss with my team the possibility to use laravel shift since it's highly recommended as i did a research about it.thanks guys for your help i really appreciate it !!!

17 Jan
6 months ago

youssefboudaya started a new conversation How To Secure My Laravel App ?

I have a 4.2 laravel application i want to set a firewall using https://github.com/antonioribeiro/firewall and set an api rate limiting using this https://www.cloudways.com/blog/laravel-and-api-rate-limiting/ is it possible to do so or should i migrate my application to a certain version in order to set this two things.(my server php is 5.6.29)

16 Jan
6 months ago

youssefboudaya left a reply on Best Laravel Version To Have With Existing Php ?

@MANELGAVALDA - this is the first time i'm trying to upgrade a laravel project and i'm used to working with 5.4 version(almost 2 years).this project is not created by me so i think it would be better to upgrade to 5.4 because in case i get error or bugs i think i'll be able to solve them.

youssefboudaya left a reply on Best Laravel Version To Have With Existing Php ?

@MANELGAVALDA - i forget to say that this is the answer i got : Current PHP version: 5.6.29-0+deb8u1

youssefboudaya started a new conversation Best Laravel Version To Have With Existing Php ?

i did as shown in this site https://fr.wikihow.com/connaitre-votre-version-de-PHP to know the php version running on my server (not local).I am working with laravel 4.2 and i want to upgrade it.To which laravel version is it recommended to upgrade ?

25 Oct
8 months ago

youssefboudaya started a new conversation How To Edit Existing Ppt File With Php Presentation And Laravel ?

I have an example ppt file that i want to edit existing elements(paragraphes,title,images) and add other new slides.I tried a simple read file and save but all existing style and elements in the ppt sample(the file i loaded at first) get deleted. this is my code:

$oReaderPPT = IOFactory::createReader('PowerPoint2007');
    $objPhpPresentation = $oReaderPPT->load(base_path().'/public/Planning.pptx');

    // Create a shape (drawing)
    foreach ($final as $key => $value) {
        $oSlide = $oPHPPresentation->createSlide();
    }

    // generate PPT file.
    $oWriterPPTX = IOFactory::createWriter($objPhpPresentation, 'PowerPoint2007');
    $oWriterPPTX->save("Planning ".$page->name.".ppt");
    $file_url = "Planning ".$page->name.".ppt";
    header('Content-Description: File Transfer');
    header('Content-Type: application/vnd.openxmlformats- 
   officedocument.presentationml.presentation');
    header('Content-Disposition: attachment; filename='.basename($file_url));
    header('Content-Transfer-Encoding: binary');
    header('Expires: 0');
    header('Cache-Control: must-revalidate');
    header('Pragma: public');
    header('Content-Length: ' .filesize($file_url));

    readfile($file_url);

youssefboudaya left a reply on How To Install Laravel Package On Webserver?

How can i run the composer install thruogh ssh in the directory of my application ?

26 Apr
1 year ago

youssefboudaya left a reply on Auth::attempt() Not Working When Connecting In Laravel With Facebook

Thanks i just now got that working with this "Auth::login($user);" both are working perfectly

youssefboudaya started a new conversation Auth::attempt() Not Working When Connecting In Laravel With Facebook

I'm trying to connect into my laravel application with facebook.When the new user click the button i get his infromations stored into the databse and then try to connect him into the application this is my code:

public function store(Facebook $fb) //method injection { $uid = Request::input('uid'); // retrieve form input parameters

    $access_token  = Request::input('access_token');
    $permissions   = Request::input('permissions');

    // get long term access token for future use
    $oAuth2Client  = $fb->getOAuth2Client();



    $fb->setDefaultAccessToken($oAuth2Client->getLongLivedAccessToken($access_token)->getValue());

    // call api to retrieve person's public_profile details
    $fields = "id,cover,name,first_name,email,last_name,age_range,link,gender,locale,picture,timezone,updated_time,verified";
    $fb_user = $fb->get('/me?fields='.$fields)->getGraphUser();
    //$pages = $fb_user['pages'];

    $user               = new User();
    $user->firstname    = $fb_user['first_name'];
    $user->lastname     = $fb_user['last_name'];
    $user->email        = $fb_user['email'];
    $user->pseudo       = $fb_user['first_name'];
    $user->facebook_id  = $uid;
    $user->access_token = $oAuth2Client->getLongLivedAccessToken($access_token)->getValue();
    $user->password     = Hash::make(RAND());
    $user->save();

    if  (Auth::attempt(['email' => $user->email , 'password' => $user->password])) {
        return redirect('/');
    }
    else{
        return redirect('/login');
    }

} But i always get redirected to the login page.

16 Mar
1 year ago

youssefboudaya left a reply on How To Display Accentuated Months In Laravel

i found a solution have this this line written in my route : setlocale(LC_TIME, 'fr_FR.utf8','fra'); and in the view: {{ strftime("%d %B %Y, %H:%M", strtotime($invoice->invoice_date)) }}

15 Mar
1 year ago

youssefboudaya started a new conversation How To Display Accentuated Months In Laravel

i'm trying to display my dates in french language. i wrote this code

I have a little problem with months like (Février, Août, Décembre ) i get them displayed for example like this :f�vrier (i'm working on windows 10 )
09 Mar
1 year ago

youssefboudaya started a new conversation How To Show Images With Ajax In Laravel View ?

I have a number of images (album) that i want to be displayed inside div once the user click on a specific modal. I'm trying to create the div that the images will be displayed in using jquery so far this is what i reached :

CalendarApp.prototype.onEventClick =  function (calEvent, jsEvent, view) {
    var $this = this;
    $.ajax({
            url: "{{ URL::to('calendar/detail') }}",
            type: 'get',
            data:{id:calEvent.id},
            
            
            success:function(data){
                Command: toastr["success"]("succées post")
                $('#title').val(data.title);
                $("#description").summernote("code", data.description);
                $('#start1').val(data.start);
                $('#end1').val(data.end);
                $('.post_id').val(data.id);
                var statut = data.statut; 
                $.ajax({
                    url: "{{ URL::to('calendar/detail') }}",
                    type: 'get',
                    data:{id:calEvent.id},


                    success:function(data)
                    {
                        Command: toastr["success"]("succées post")
                        $('#title').val(data.title);
                        $("#description").summernote("code", data.description);
                        $('#start1').val(data.start);
                        $('#end1').val(data.end);
                        $('.post_id').val(data.id);
                        var statut = data.statut; 
                        console.log(statut);
                        var user_id = {{Auth::user()->id}} ; 
                        
                        $.getJSON("http://127.0.0.1/CM/public/calendar/getimg/"+data.id, function(data) 
                        {
                            var div = $("<div> </div>");
                            $.each(data, function(key,value)
                            { //loop through it
                                var img = "http://127.0.0.1/CM/public/"+value;
                                div.append("<img src='' id='img-album-post'  >");
                                $("#img-album-post").attr( "src", img );
                            });
                            $("#album1").append(div);
                        });
                        $this.$modal.modal({
                            backdrop: 'static'
                        });

                    }
                });

                
   
    
},

and this is the target div :

<div class="row" id="album1">
   <div class="col-sm-6 col-sm-offset-3">
       <center><button type="button" id="modify-album" class="btn btn-orange">Ajouter un album</button></center>     
   </div>
</div>

for now nothing is displayed .

06 Feb
1 year ago

youssefboudaya left a reply on The Parameter App_id Is Required Socialite

at first i got the same error as AHMEDSOBH . i followed your answer and the error changed to this one : Unable to load this URL: The domain of this URL is not registered in those of the application. To import this URL, add all the domains and subdomains of your application to the Domains field of the application settings.

25 Jan
1 year ago

youssefboudaya left a reply on Summernote Table Width

i know i can do that but i'm creating a project to another users that dont know about coding. is there a solution to make the width by default 1100px ?

youssefboudaya started a new conversation Summernote Table Width

i created a table inside the summernote editor(working with laravel). In my view i don't get the whole table displayed because of this line generated :

<table class="table table-bordered" style="width:1235px">

i want to change the width to 1100px so i can have the complete table displayed?

26 Sep
1 year ago

youssefboudaya started a new conversation Storing With Dropzone

I am storing images with dropzone plugin it used to work just fine but now i have this problem : Failed to load resource: the server responded with a status of 500 (Internal Server Error) http://127.0.0.1/mandarine-2017-09-11/public/administrator/realisation/storeimg

this is the storing function in my controller :

public function storeimg (Request $request) { if($request->file('file')) {

        $blog_img = New Blogimg();

        $image = $request->file('file');

        $extension = $image->getClientOriginalExtension();
        $name = substr($image->getClientOriginalName(), 0, -4);
        list($width, $height) = getimagesize($image);
        $imgname = str_slug($name, '_');
        $filename = $imgname.'.'.$extension;
        if(file_exists('uploads/blogimg/' . $filename)){
            do {
                $newname = $imgname.'_'.str_random(3) . '.' . $extension;
            } 
            while(file_exists('uploads/blogimg/' . $newname));
            $filename = $newname;
        }

        $path = 'uploads/blogimg/'.$filename;

        $save = Image::make($image->getRealPath())->resize(1600, null, function ($constraint){
            $constraint->aspectRatio();
        })->save($path);

    
        
        $blog_img->image   =   $path;
        $blog_img->blog_id =   $request->get('blog_id');
        $blog_img->user_id =   Auth::user()->id; 
        $blog_img->save();
        
    }
}