Alzaabi98

Alzaabi98

Member Since 2 Years Ago

Experience Points 19,380
Experience Level 4

620 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 173
Lessons
Completed
Best Reply Awards 0
Best Reply
Awards
  • Start Your Engines Achievement

    Start Your Engines

    Earned once you have completed your first Laracasts lesson.

  • First Thousand Achievement

    First Thousand

    Earned once you have earned your first 1000 experience points.

  • One Year Member Achievement

    One Year Member

    Earned when you have been with Laracasts for 1 year.

  • Two Year Member Achievement

    Two Year Member

    Earned when you have been with Laracasts for 2 years.

  • Three Year Member Achievement

    Three Year Member

    Earned when you have been with Laracasts for 3 years.

  • Four Year Member Achievement

    Four Year Member

    Earned when you have been with Laracasts for 4 years.

  • Five Year Member Achievement

    Five Year Member

    Earned when you have been with Laracasts for 5 years.

  • School In Session Achievement

    School In Session

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

  • Welcome To The Community Achievement

    Welcome To The Community

    Earned after your first post on the Laracasts forum.

  • Full Time Learner Achievement

    Full Time Learner

    Earned once 100 Laracasts lessons have been completed.

  • Pay It Forward Achievement

    Pay It Forward

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

  • Subscriber Achievement

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • Lifer Achievement

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • Laracasts Evangelist Achievement

    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 Achievement

    Chatty Cathy

    Earned once you have achieved 500 forum replies.

  • Laracasts Veteran Achievement

    Laracasts Veteran

    Earned once your experience points passes 100,000.

  • Ten Thousand Strong Achievement

    Ten Thousand Strong

    Earned once your experience points hits 10,000.

  • Laracasts Master Achievement

    Laracasts Master

    Earned once 1000 Laracasts lessons have been completed.

  • Laracasts Tutor Achievement

    Laracasts Tutor

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

  • Laracasts Sensei Achievement

    Laracasts Sensei

    Earned once your experience points passes 1 million.

  • Top 50 Achievement

    Top 50

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

19 Feb
1 year ago

Alzaabi98 left a reply on Vimeo For Elearning...

i am looking for this stuff is some can make tutorials.. i think vimeo can do that but no one is doing great examples here or in intenet..i tried few times to get some tutorials.. even i have email Jeffery about it...

18 Feb
1 year ago

Alzaabi98 left a reply on How To Integrate Fully With Vimeo Api ? Like Create Channels..albums ..upload Videos

hi all..

this is strange topic about vimeo . there is not much examples in the net or even in youtube.. there docs also very complex at least to me .. with no good examples.. i hope to see someone who understands to make some tutorials .. how to do upload via for example axios .. ect...

15 Feb
1 year ago

Alzaabi98 left a reply on How To Integrate Fully With Vimeo Api ? Like Create Channels..albums ..upload Videos

Hi thoasty,

can you please elaborate more.. how can I do that?

Alzaabi98 started a new conversation How To Integrate Fully With Vimeo Api ? Like Create Channels..albums ..upload Videos

Hi All,

Anyone used Vimeo package for laravel ? https://github.com/vimeo/laravel

I was able to do simple upload .. but I need help to do things like :

  • create channels..
  • create albums in channels..
  • upload videos to album.. -make them private and control access via laravel..

is that possible ? or do you have any solutions..

when I tried this code from the package :

Vimeo::channels([

            'name' => 'new channel',
            'privacy' => 'user'
        ]);

I got this error :

Call to undefined method Vimeo\Vimeo::channels()

I am not sure if this is possible using this package. can anyone help or suggest another way..

i am planning to make video website such as udemy for learning purposes ?

thanks in advance..

12 Feb
1 year ago

Alzaabi98 left a reply on Vimeo Api Using Laravel Best Package

Hi guys ,, can you have any sample code or explanation how to achieve what @bootstrapguru want to do..

it will be great if you explain that ..

13 Jul
1 year ago

Alzaabi98 left a reply on Design Question - Book Halls Per Hour/date

thanks for the nice links.. i am reading them and come back to you.. thanks alot..

12 Jul
1 year ago

Alzaabi98 left a reply on Design Question - Book Halls Per Hour/date

i did .. but still not have proper picture how to start in terms if models.. controllers.. database ,,, and view..

10 Jul
1 year ago

Alzaabi98 started a new conversation Design Question - Book Halls Per Hour/date

Hi All,

I am doing a project in which a user can add his own halls and manage booking for general users.

so you have owner and normal user in which he become owner if he adds his own hall.

i am stuck how can i implement a process of managing a schedule .. i mean how user provision free/busy, approve requests .. set prices per hour. etc..

Also how user can see available dates.. hours.. and book .. get confirmation via email etc..

any advice how to design and which help stuff I can use for viewing and managing this kind of calendar..

07 Jul
1 year ago

Alzaabi98 started a new conversation Import Namespace In Sublime Give Me Wrong Import

hi all,

i am trying to use sublime package php companion.

when I click fn+f4 on model to add namspace.. for example User.. I got this line add

namespace Users\profile01\Laravel-Projects\projectname\app;

i tried all models and i got the same namespace add above..

this is key binding in user

 { "keys": ["f6"], "command": "expand_fqcn" },
      { "keys": ["shift+f6"], "command": "expand_fqcn", "args": {"leading_separator": true} },
      { "keys": ["f5"], "command": "find_use" },
      { "keys": ["f4"], "command": "import_namespace" },
      { "keys": ["f3"], "command": "implement" },
      { "keys": ["shift+f12"], "command": "goto_definition_scope" },
      { "keys": ["f7"], "command": "insert_php_constructor_property" }

any advice

26 May
2 years ago
24 May
2 years ago

Alzaabi98 started a new conversation What Is This Issue In This Import For Css File

Hi,

I am tried to add videojs css file via mix compilation process . I have the file videojs.css under the this path :

Resources->sass->vendor->videojs.css

when I add this line in app.scss :

@import "vendor/video-js";

I got this error when i run npm run dev or wtach

`

@ development /Users/abdulaziz/Laravel-Projects/trainremote cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

95% emitting

ERROR Failed to compile with 1 errors This relative module was not found:

  • ./font/VideoJS.eot in ./~/css-loader?{"url":true,"sourceMap":false}!./~/postcss-loader?{"sourceMap":false}!./~/resolve-url-loader!./~/sass-loader/lib/loader.js?{"precision":8,"outputStyle":"expanded","sourceMap":true}!./resources/assets/sass/app.scss

`

it looks it can see this file,,

but when i do this

`

@import url(http://vjs.zencdn.net/5.19.2/video-js.css); `

can someone help to see what is the issue with importing local file instead of url

13 May
2 years ago

Alzaabi98 left a reply on Another Npm Run Dev Error "The Provided Value "public" Is Not An Absolute Path!"

I did resolve it ,

i deleted the folder node_modules from the project. then I did :

from local machine not from homestead : npm install

and then it worked "npm run dev"

not sure why it was not working when i did install npm in homestead ..

12 May
2 years ago

Alzaabi98 left a reply on Another Npm Run Dev Error "The Provided Value "public" Is Not An Absolute Path!"

Hi saurabhd,

I cant find section with "devDependencies" in composer.json.. but I added like below :

"require-dev": { "fzaninotto/faker": "~1.4", "mockery/mockery": "0.9.*", "webpack": "2.2.1", "phpunit/phpunit": "~5.7" },

still the same issue ..

Alzaabi98 started a new conversation Another Npm Run Dev Error "The Provided Value "public" Is Not An Absolute Path!"

I have issue running npm run dev.. which is cant find find cross-env.js then I have added /dist/bin/cross-env.js and solved that issue..

now i got this error ??

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.

  • configuration.output.path: The provided value "public" is not an absolute path!

any help

11 May
2 years ago

Alzaabi98 left a reply on Npm Run Dev Errors

I am getting this error in my Mac using Homestead

this command does work .. sudo npm dev run

sh: cross-env: command not found npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! @ development: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the @ development script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/abdulaziz/.npm/_logs/2017-05-11T15_58_59_450Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev: npm run development npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/abdulaziz/.npm/_logs/2017-05-11T15_58_59_473Z-debug.log

Alzaabi98 left a reply on Npm Run Dev Errors

thanks theUnforgiven

what is the reason for that? I am using hosted server .. also I got the same error in myMac . i will try same command again at home,

thanks again

Alzaabi98 started a new conversation Npm Run Dev Errors

Hi All,

I am running Laravel in cloud 9 and I got this error when I run "npm run dev"

cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js

/home/ubuntu/workspace/node_modules/laravel-mix/setup/webpack.config.js:1 (function (exports, require, module, __filename, __dirname) { let path = require('path'); ^^^

SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:373:25) at Object.Module._extensions..js (module.js:416:10) at Module.load (module.js:343:32) at Function.Module._load (module.js:300:12) at Module.require (module.js:353:17) at require (internal/module.js:12:17) at requireConfig (/home/ubuntu/workspace/node_modules/webpack/bin/convert-argv.js:96:18) at /home/ubuntu/workspace/node_modules/webpack/bin/convert-argv.js:109:17 at Array.forEach (native) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! @ dev: cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the @ dev script 'cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! cross-env NODE_ENV=development node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls npm ERR! There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! /home/ubuntu/.npm/_logs/2017-05-11T06_35_15_767Z-debug.log

29 Mar
2 years ago

Alzaabi98 left a reply on Pagination With Filtering - Issue In Pagination Goes Back To Unfiltered Data

thank you both of you .. i would like to give both right answer but i could not .. :)

thanks for your prompt answer.

Alzaabi98 left a reply on Pagination With Filtering - Issue In Pagination Goes Back To Unfiltered Data

thanks vipin and sylar, both works..

but what is the diff.

I wonder if this will work also i have more filtered data .. for example.. user can filter country,, region..state.. will this work as well.

Alzaabi98 started a new conversation Pagination With Filtering - Issue In Pagination Goes Back To Unfiltered Data

Hi all,

I want to show all records in index.blade.php, at the same time I wan to allow users to filter results based in certain criteria such as country etc.

I was able to implement filter and pagination but I have once issue :

When the user filter something , pagination does not pick the filtered result except in page #1. Then it will go back to unfiltered data,

here is the code in controller

    public function index(Request $request) {
        
        if ($request->has('country') ) {
            
            $members = Member::where('country',$request->country)->paginate(5);
        
        } else {
            
            $members = Member::paginate(8) ;
        }
        
        
        return view('members.index', compact('members'));
    }

in index.blade.php .. the code to send filtered info is :


form method="get" action="/members">

    <input type="checkbox" name="country" value="Oman"/> Oman <br>
    
    <input type="submit" class="btn btn-default" value="Filter">

 </form>

please advice how can I keep the pagination linked to filtered data

Alzaabi98 left a reply on Quick Deploy Is Not Working For My Site

any has this issue ?? please advice

18 Mar
2 years ago

Alzaabi98 left a reply on Running DB Migrations On Production Site

i am having same issue .. i edited same migration . then run rollback then migrate locally,, but it does not reflect on forge

does forge only works when new migration is done ???

16 Mar
2 years ago

Alzaabi98 left a reply on Quick Deploy Is Not Working For My Site

normal project in github ..

I have local project and via git i updated my gitlab repo .. then added this repo in forge

it is working fine manually but when I select option for quick deploy in forge and then do some changes in local files..then using git updated the project ..

i noticed forge does not detect there the changes automatically in the repo in gitlab,,

this was working fine in the last version of forge as i recall.

15 Mar
2 years ago

Alzaabi98 started a new conversation Quick Deploy Is Not Working For My Site

i wonder why Quick Deploy is not working even the option is selected for this site at forge .. any help

13 Mar
2 years ago

Alzaabi98 left a reply on Class 'App\Mail\cardCreated' Not Found In Forge But Working Fine Locally

U r the man.. Fraserk.. U r right it was case sensitivity issue

But this means locally it ignores case sensitivity

Alzaabi98 started a new conversation Class 'App\Mail\cardCreated' Not Found In Forge But Working Fine Locally

Hi all,

I have configured send email in my local project and it is working fine. When I push changes to forge it did copy same files but when i run the code to send email i got this error

Class 'App\Mail\cardCreated' not found

any one has idea what is the issue .. is this related to laravel versions or forge caching or what..

when I connect ssh i can see this file exist in the same path..

please help

06 Mar
2 years ago

Alzaabi98 left a reply on What Is Wrong With This Syntax ??

thanks all for your help and logaretm for the right answer

02 Mar
2 years ago

Alzaabi98 left a reply on Laravel 5.4 Npm Run Watch Not Working

how to update npm .. i got this error when I run watch

28 Feb
2 years ago

Alzaabi98 left a reply on What Is Wrong With This Syntax ??

steve,, this does not wok,,

i got Undefined variable: selected

also it didnt read the $state->region->name,, it just post as text ...

the issue i want to compare variable send to blade.. with vue variable..

how can i achieve that??

Alzaabi98 started a new conversation What Is Wrong With This Syntax ??

Hi ,

I am trying to loop via variable in view and then compare if variable is equal to vue data variable then show "done" ,,, otherwise skip it.. but it gave me errors..

the strange thing that both sides of if statement are displaying correctly when i just show them in

tag ,,

                                 
                            @foreach($states as $state)                            
                                
                                @if (@{{selected}} == 'Muscat')
                                    <p>done</p>
    
                                @endif
                            @endforeach                       

this is the error


ErrorException in 981fa4598d44e12d3262d6251b6feb18b97a8ebf.php line 83:
Parse error: syntax error, unexpected '{' (View: /home/vagrant/Code/find-playground/resources/views/playgrounds/form-edit.blade.php) (View: /home/vagrant/Code/find-playground/resources/views/playgrounds/form-edit.blade.php)

Alzaabi98 left a reply on How To Do Two Dropbox For Regions And Filter Cities Based On The First Dropbox?

vipin,,

it is kind of tricky when i pulled it down and allow user to update the list.

in one hand , i want the selected on is the one from database.. then allow him to select another one which in turns it should change the other dropbox.. i am not able to achieve this scenario.

27 Feb
2 years ago

Alzaabi98 left a reply on How To Do Two Dropbox For Regions And Filter Cities Based On The First Dropbox?

tomasz,,

any luck to help how to store in DB and then how can i allow user to change it and save it .. i am stuck there..

i am stuck as now only value is stored for region and text ??

23 Feb
2 years ago

Alzaabi98 left a reply on How To Do Two Dropbox For Regions And Filter Cities Based On The First Dropbox?

thanks for your help.. it works after I removed v-if="activeRegion" from second dropbox.. how can make value to be region name" in the first dropbox because when i put "region.name" it failed.. is it must to be inex

Alzaabi98 left a reply on How To Do Two Dropbox For Regions And Filter Cities Based On The First Dropbox?

thanks tomas for your reply.. still i am not getting working fine with when it loaded.. it works only for second and third region but not first one..


<form>
            <select name="region" id="region" class="form-control" v-model="activeRegion"> 
                <option  v-for="(region, index) in regions"  :value="index">
                     {{region.name}}
                </option>
                                    
            </select>

            <br><br>
            <select name="city" id="city" class="form-control" v-if="activeRegion"> 
               <option  v-for="city in regions[activeRegion].cities"  :value="city">
                 {{city}}
            </option>
                                    
         </select>

<script>
    
    var app = new Vue({

    el : '#app',
   
    data: {

        welcome: " Welcome to dropdown example",
        activeRegion: 0,

        regions: [
            
            {
                id: 0 ,
                name: 'Muscat',
                cities: ['seeb','bousher']
            },

            {
                id: 1 ,
                name: 'Albatenah',
                cities: ['Alkhaboura','Saham']
            },
            

            {
                id: 2 ,
                name: 'AlSharqia',
                cities: ['sur','Jalaan bu Ali']
            },
            
        ],
    },

});

</script>



19 Feb
2 years ago

Alzaabi98 started a new conversation How To Do Two Dropbox For Regions And Filter Cities Based On The First Dropbox?

Hi All,

I am trying to implement a form with dropbox for user to select region and then another dropbox to filter cities in that regions.

for example if this is the vue :

=======

var app = new Vue({

el : '#app',

data: {


    regions: [
        
        {
            id: 1 ,
            name: 'Muscat',
            cities: ['seeb','bousher']
        },

        {
            id: 2 ,
            name: 'Albatenah',
            cities: ['Alkhaboura','Saham']
        },
        

        {
            id: 3 ,
            name: 'AlSharqia',
            cities: ['sur','Jalaan bu Ali']
        },
        
    ],
},

====================

in the view i did this :

=======

<select name="region" id="region" class="form-control" @change="changeMe"> @{{region.name}}

===

but not able to implement the other dropbox .. also value is not working when i did @{{region.id}}

please advice

07 Jan
2 years ago

Alzaabi98 left a reply on Helper With Eloquent Methods..

thanks ohffs ,,it worked

Alzaabi98 left a reply on Helper With Eloquent Methods..

class Helpers{

public static function countries() {

    $countries = [

        ['name' => 'oman', 'lat' => 3.4],
        ['name' => 'uae', 'lat' => 3.4],
    ] ;
    
    return $countries ;
}

}

Alzaabi98 started a new conversation Helper With Eloquent Methods..

I have the following helper file,,

how can i make use of Eloquent methods along with this helpers.. or i should use something else for this purpose:

06 Jan
2 years ago

Alzaabi98 left a reply on Google Maps

Hi All,

I am using bradcornford/Googlmapper,,

How can allow user to select his current location or click on location on a map and added to his record..

I am assuming I am adding my resturant locations..

How can do that ??

also How can I show all resultants in a map .. or around me .. please advice

27 Dec
2 years ago

Alzaabi98 left a reply on Trying To Run Videojs Via Vue But Not Component Does Not Show

any help team.. i am stuck in this part.i appreciate your support.

26 Dec
2 years ago

Alzaabi98 left a reply on Trying To Run Videojs Via Vue But Not Component Does Not Show

let videojs from "video.js" ;

this line thru errors .. inside ready or before export ... this is weird .. i thought it is simple

25 Dec
2 years ago

Alzaabi98 left a reply on Trying To Run Videojs Via Vue But Not Component Does Not Show

this what i could not make to work.. how this work ? when i type player or videojs in console , it didnt recognize it.

Alzaabi98 left a reply on Trying To Run Videojs Via Vue But Not Component Does Not Show

now the video is showing as html5 but not as videojs.. also when I add data-setups it spit out controls down the page as show here..

https://postimg.org/image/z2k2sz7lv/

not sure why not getting video js setting..

here is vue file :

<video  id="video" class="video-js vjs-big-play-centered" 
        controls
        poster="http://vjs.zencdn.net/v/oceans.png" 
        data-setup="{}">
         
    
     <source src="http://vjs.zencdn.net/v/oceans.mp4" type="video/mp4" >
      

</video>

import videojs from "video.js" ;


export default {

    data() {

        return {
            player: null,
            //name: null,
        }
    },

    props: {

        name: null,

    } ,

    mounted() {
        console.log('I am mounted') ;
    },

    ready() {

        this.player = videojs('video');
    }


}
24 Dec
2 years ago