Farouz

Experience

2,100

0 Best Reply Awards

  • Member Since 10 Months Ago
  • 16 Lessons Completed
  • 0 Favorites

4th June, 2018

Farouz started a new conversation Passing Properties To Map Code • 3 months ago

i have a branches and the single branch has lat and lag and the variable called $branchs i passed it from controller to the blade now i want to insert these records into this code to display the locations // Creating a new map var map = new google.maps.Map(document.getElementById("map"), { center: new google.maps.LatLng(30.9469529,31.182489,13), disableDefaultUI: true, navigationControl: false, mapTypeControl: false, scaleControl: true, draggable: true, streetViewControl: false, disableDoubleClickZoom: true, scrollwheel: false, zoom: 5, mapTypeId: google.maps.MapTypeId.ROADMAP });

var icon = "http://madlab.ca/assets/img/map-icon.png";

    // Creating the JSON data
    var json = {"locations": [

            {
      "lat": 49.2673302,
      "lng": -123.079302
    },
    // {
    //   "lat": 38.7325329,
    //   "lng": -121.2980867
    // },
    // {
    //   "lat": 42.3841269,
    //   "lng": -71.1134142
    // },
    // {
    //   "lat": 28.1276762,
    //   "lng": -80.633254
    // },
    // {
    //   "lat": 50.1029416,
    //   "lng": 14.4355941
    // }
        ]};//JSONend

26th April, 2018

Farouz left a reply on Matching Data • 4 months ago

@tykus thank you very much it works and i am thankful

Farouz left a reply on Matching Data • 4 months ago

@tykus i made this query in the blade to retrieve all data contains payment word and my blade contains Users and Contacts also i made this query for all of them

Farouz left a reply on Matching Data • 4 months ago

$role_permissions retrieve the items from pivot table with roles and permissions

Farouz left a reply on Matching Data • 4 months ago

doesn't work this solution @tykus

Farouz left a reply on Matching Data • 4 months ago

and the solution ?

Farouz left a reply on Matching Data • 4 months ago

i cant handle the markdown code so that its my code $role_permissions=PermissionsRole::where('role_id',$role->id)->get(); and this is the blade @foreach(\App\Permission::where('name','LIKE','%Payment%')->get() as $permission)

                                <li>
                                    <label class="checkbox-inline">
                                        <input type="checkbox" id="inlineCheckbox1" name="permission[]"

                                                            value="{{$permission->id}}"> {{$permission->display_name}}</label>
                                </li>
                            @endforeach

Farouz left a reply on Matching Data • 4 months ago

i cat handle the Markdown code but it's my code

$role_permissions=PermissionsRole::where('role_id',$role->id)->get();

and this is my blade

@foreach(\App\Permission::where('name','LIKE','%User%')->get() as $permission)

  • {{$permission->display_name}}
  • @endforeach

    Farouz started a new conversation Matching Data • 4 months ago

    i retrieved this variable A from database and it has a correct data then i passed it to the blade how can i manage in checkbox if the variable B id exists in the collection of variable A then make the checkbox is checked

    28th February, 2018

    Farouz left a reply on Passing Variables • 6 months ago

    this is my first function public function buyCourse($id) { $course = Course::findOrFail($id); $this->getDone($course); } and this the second public function getDone($course,Request $request) { // } like that ?

    Farouz started a new conversation Passing Variables • 6 months ago

    how can i pass a variable from function to other in the same controller ?

    Farouz started a new conversation PayPal \ Exception \ PayPalConnectionException (28) Connection Timed Out After 10000 Milliseconds • 6 months ago

    I used NetShell/Paypal -rest-api-sdk-php package and it was an error caller size of array() so i updated the package and i get this error PayPal \ Exception \ PayPalConnectionException (28) Connection timed out after 10000 milliseconds

    23rd February, 2018

    Farouz left a reply on Email To Group Of Users • 6 months ago

    i made every thing in right way but i get this error Object of class stdClass could not be converted to string

    Farouz started a new conversation Email To Group Of Users • 6 months ago

    Now iam sending email for agroup of users i have thire ids already so how can i get their email and run the function of mail this is my controller

    public function postSendMessages($id,Request $request){ $course=Course::find($id); $message=$request->message; $users=DB::table('courses_users')->where('course_id',$course->id)->select('user_id')->get('id'); foreach ($users as $user){ $user_email=User::where('id',$user)->first()->email; Mail::to('hossamfarouz15@gmail')->send(new MailToAll($user_email , $message)); } return back()->with('success','Messages Sent'); }

    what is the best way to do it ?

    17th February, 2018

    Farouz started a new conversation Validation • 7 months ago

    my question related to Validation : now i have $user->password this is the old password how i make a validation for input name='oldPassword' that the user must enter the the old password when reset his password

    14th February, 2018

    Farouz left a reply on Page Not Found • 7 months ago

    ok i was add $ in the route >route::get('/cat/{$id}' and this is the wrong

    Farouz started a new conversation Page Not Found • 7 months ago

    trying to get this page and it responds with "Sorry, the page you are looking for could not be found." this is my href "@foreach($categories as $item)

  • <a href='{{route('GET_CATEGORY',$item->id)}}'>{{$item->title_ar}}
  • @endforeach " this is my route " Route::get('/category/{$id}','[email protected]')->name('GET_CATEGORY'); " and this is my controller " public function getCategory($id){ $category=CourseCategory::findOrFail($id); return view('User.Course.Category',compact('category','categories','courses')); } "

    5th February, 2018

    Farouz started a new conversation Sharing Photos From Blade To Social Media • 7 months ago

    how to active the sharing process from the view and to share to facebook or any social media including the image itself .

    30th November, 2017

    Farouz left a reply on Save The Change Of The Checkbox-state On DB • 9 months ago

    This is for my function in controller :::

    public function update(Request $request,$id){ $question=Question::find($id); if (Input::get('solved')== true){ $question->solved=1;

            $question->save();
    
        }
        else{
            $question->solved=0;
    
            $question->save();
        }
        $question->question=$request->question;
        $question->save();
    
    
        return redirect('/your-questions');
    }
    

    and this is for my form for edit :::::

    Solved and this is for my route :::: Route::post('/question/{id}/update','[email protected]');

    Edit Your Profile
    Update

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