Flex

Experience

6,140

0 Best Reply Awards

  • Member Since 1 Year Ago
  • 7 Lessons Completed
  • 0 Favorites

22nd June, 2018

Flex left a reply on How To Create Data Table In My Laravel App? • 18 hours ago

No any idea about this matter

Flex left a reply on How To Create Data Table In My Laravel App? • 20 hours ago

@Yorki I need your 3rd option. but I have not idea to create data table. how can I save this data I mean some array... or some thing I need some guide.... it is great help

Flex started a new conversation How To Create Data Table In My Laravel App? • 21 hours ago

hello, I am going to develop Auto Classified advertisement system using laravel. in My application there are six different vehicle types as,

car/van
Motor Bike
Lorry/bus
SUV
Boat
heavy Machinery

when some user is going to post an ad under one of above category there are some common columns name and some different columns values in the form, as an example consider car/van category. in this form have following form filling values

states
town
brand
series
transmission_type
millage
color
fuel_type

and consider some ad under heavy machinery category, form

states
town
brand
engine_size
bucket_size

you can consider there are some common columns name like states,town,brand and some different columns name values. so, I am planning to save same columns name values as ads_info table and other different columns values to vehicle_info table in the same form. but My problem is how can I create vehicle_info table architecture. i have no an idea about this. can you give me some solutions?

21st June, 2018

Flex left a reply on Can I Install Wamp 3 On Windows 7 • 2 days ago

yes I need to learn it manually?

Flex left a reply on Can I Install Wamp 3 On Windows 7 • 2 days ago

@ahmedggalal thank for the reply. do you know video tutorials to install php,mysql and apache manually?

Flex started a new conversation Can I Install Wamp 3 On Windows 7 • 2 days ago

hi, I am working with wamp 2. but I need install wamp 3 on windows 7. is wamp 3 support to install on windows 7?

17th June, 2018

Flex started a new conversation How To Controll Diferent Users Interfaces Acording To The Users Roles In Laratrust • 6 days ago

new to the laratrust user control system. I need to know that how can I manage deference users interfaces according to the different users roles in laratrust. any tutorials links or some thing.

16th June, 2018

Flex left a reply on Invalid Argument Supplied For Foreach() (View: C:\Users\Flex\Desktop\Laravelfresh\resources\views\manage\roles\index.blade.php) • 1 week ago

found my problem here solution is remove single quotes around $roles in the Controller return.

Flex left a reply on Invalid Argument Supplied For Foreach() (View: C:\Users\Flex\Desktop\Laravelfresh\resources\views\manage\roles\index.blade.php) • 1 week ago

@Cronix this is My RoleController

 public function index()
    {
        $roles = Role::all();
        return view('manage.roles.index')->withRoles('$roles');
    }

is it with some problems?

Flex started a new conversation Invalid Argument Supplied For Foreach() (View: C:\Users\Flex\Desktop\Laravelfresh\resources\views\manage\roles\index.blade.php) • 1 week ago

I have following index.blade.php file

@extends('layouts.manage')

@section('content')
  <div class="flex-container">
    <div class="columns m-t-10">
      <div class="column">
        <h1 class="title">Manage Roles</h1>
      </div>
      <div class="column">
        <a href="{{route('manage.roles.create')}}" class="button is-primary is-pulled-right"><i class="fa fa-user-plus m-r-10"></i> Create New Role</a>
      </div>
    </div>
    <hr class="m-t-0">

    <div class="columns is-multiline">
      @foreach ($roles as $role)
        <div class="column is-one-quarter">
          <div class="box">
            <article class="media">
              <div class="media-content">
                <div class="content">
                  <h3 class="title">{{$role->display_name}}</h3>
                  <h4 class="subtitle"><em>{{$role->name}}</em></h4>
                  <p>
                    {{$role->description}}
                  </p>
                </div>

                <div class="columns is-mobile">
                  <div class="column is-one-half">
                    <a href="{{route('manage.roles.show', $role->id)}}" class="button is-primary is-fullwidth">Details</a>
                  </div>
                  <div class="column is-one-half">
                    <a href="{{route('manage.roles.edit', $role->id)}}" class="button is-light is-fullwidth">Edit</a>
                  </div>
                </div>
              </div>
            </article>
          </div>
        </div>
      @endforeach
    </div>
  </div>
@endsection

then, Occurred following error massage

ErrorException in df40d4e101a3ae220b6029f587159c2cc8c57c7d.php line 14: Invalid argument supplied for foreach() (View: C:\Users\Nalaka\Desktop\Laravelfresh\resources\views\manage\roles\index.blade.php)

how to fix this problem?

13th June, 2018

Flex started a new conversation Route [users.index] Not Defined. • 1 week ago

in My blade file I have route as this

 <li><a href="{{route('users.index')}}">Manage Users</a></li>

My routes.php is like this

Route::resource('/users','UserController');

and UserController is like this

 public function index()
    {
        return view('manage.users.index');
    }

but when I refresh web page this error occured

Route [users.index] not defined.

Flex started a new conversation [PDOException] SQLSTATE[HY000] [1044] Access Denied For User ''@'localhost' To Database 'f Orge' • 1 week ago

I have been download github laravel project and going to create data tables in My localhost. with php artisan migrate command occured following error massage on My cmd.

[PDOException]
SQLSTATE[HY000] [1044] Access denied for user ''@'localhost' to database 'f
orge'

how can I fix this problem?

11th June, 2018

Flex left a reply on Php Artisan Db:seed Command Not Working • 1 week ago

@Imxdev Yes of course.....

Flex started a new conversation Php Artisan Db:seed Command Not Working • 1 week ago

I am going to install Laratrust to My laravel project. when I am going to run following command

php artisan db:seed command not working

occurred following error in cmd

Class 'Laratrust\LaratrustRole' not found

My Role Model is this

<?php

namespace App;

use Laratrust\LaratrustRole;

class Role extends LaratrustRole
{
    //
}

Flex started a new conversation Nothing To Publish For Tag [laratrust] • 1 week ago

hi, i am going to install laratrust to My laravel app. but when I try to Publish all the configuration files: with following command

php artisan vendor:publish --tag="laratrust"

My cmd occured following error,

Nothing to publish for tag [laratrust]

how to fix this problem?

10th June, 2018

Flex left a reply on Most Popular Javascript Framework? • 1 week ago

is Vue some default java scripts or some thing with Laravel. because they promote Vue than others?

Flex left a reply on Most Popular Javascript Framework? • 1 week ago

what about use React with Laravel?

Flex left a reply on Most Popular Javascript Framework? • 1 week ago

what about community ideas

Flex left a reply on Most Popular Javascript Framework? • 1 week ago

I need to know better one among the following

Vue js
Angular
React

Flex started a new conversation Most Popular Javascript Framework? • 1 week ago

I am very glad to know that from expert what is most popular or better java script framework or library with Laravel.

8th June, 2018

Flex left a reply on How To Change Possition Of The Laravel Auth Command Brand Image? • 2 weeks ago

no any idea here....

Flex started a new conversation How To Change Possition Of The Laravel Auth Command Brand Image? • 2 weeks ago

in My laravel app I am using auth command to develop login and register. then in My default home page I need change My position of My branding image and links of login and register. (I need My branding image (default 'laravel' word to little bit right hand side.)) how can I do this correctly.

<!-- Branding Image -->
                <a class="navbar-brand" href="{{ url('/') }}">
                Laravel
</div>

7th June, 2018

Flex left a reply on What Is Best Css Framework? • 2 weeks ago

@xmarks that means if i use bulma. may I can not use default laravel pagination?

Flex started a new conversation What Is Best Css Framework? • 2 weeks ago

hello, I am working with new laravel project and I have two options for My css framework Bootstrap and Bulma. what is best css framework for me among Bootstrap and Bulma.

27th April, 2018

Flex started a new conversation How To Delete User Account After 7 Days • 1 month ago

hello, I am working with laravel 5.4 project. it is online advertisement management system. so, I need delete free user accounts withing 7 days automatically after create account. then, how can I do this? if you anybody know such as tutorials resources please inform me.

13th April, 2018

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

change AuthController as following and got success

AuthController

<?php

namespace App\Http\Controllers\Auth;

use App\User;
use Validator;
use App\Http\Controllers\Controller;
use Illuminate\Foundation\Auth\ThrottlesLogins;
use Illuminate\Foundation\Auth\AuthenticatesAndRegistersUsers;
use Illuminate\Http\Request;

class AuthController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Registration & Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles the registration of new users, as well as the
    | authentication of existing users. By default, this controller uses
    | a simple trait to add these behaviors. Why don't you explore it?
    |
    */

    use AuthenticatesAndRegistersUsers, ThrottlesLogins;

    /**
     * Where to redirect users after login / registration.
     *
     * @var string
     */
    protected $redirectTo = '/';

    /**
     * Create a new authentication controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware($this->guestMiddleware(), ['except' => 'logout']);
    }

    /**
     * Get a validator for an incoming registration request.
     *
     * @param  array  $data
     * @return \Illuminate\Contracts\Validation\Validator
     */
    protected function postRegister(Request $request)
    {
         $this->validate($request, [
            'email' => 'required|unique:users|email|max:255',
            'name' => 'required|unique:users|alpha_dash|max:20',
            'password' => 'required|min:6',
        ]);

        User::create([
            'email' => $request->input('email'),
            'name' => $request->input('name'),
            'password' => bcrypt($request->input('password'))
        ]);
    }


   
}

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

still not get any success solution

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

No any idea?

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

My validation error messages also are not working. that means if I enter character 5 password it is not indicate.

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

what is this videos

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

@topvillas yes here are not any validation errors? only refresh registration form

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

@rin4ik did it but not success only refresh register form. not coming any error message.

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

@Devmaurice did as your comments but not success

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

@rin4ik @jorpedito how can I set csrf-token can you give me an example?

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

do you have any idea to fix this problem?

Flex left a reply on Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

how can fix this problem?

Flex started a new conversation Why Do Not Work Registration System In My Laravel 5.2 Blog. • 2 months ago

working with laravel 5.2 and My registration system do not work. (not) saving data in My user table.

AuthController

protected function validator(array $data)
    {
        return Validator::make($data, [
            'name' => 'required|max:255',
            'email' => 'required|email|max:255|unique:users',
            'password' => 'required|min:6|confirmed',
        ]);
    }

    protected function create(array $data)
    {
        return User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => bcrypt($data['password']),
        ]);
    }

register.blade.php

{!! Form::open() !!}

         {{ Form::label('name','Name:')}}
         {{ Form::text('name', null, ['class' => 'form-control'])}}

         {{ Form::label('email','Email:')}}
         {{ Form::email('email', null, ['class' => 'form-control'])}}

         {{ Form::label('password','Password:')}}
         {{ Form::password('password', ['class' => 'form-control'])}}

         {{ Form::label('password_conformation', 'Conform Password:')}}
         {{ Form::password('password_conformation',['class' => 'form-control'])}}

         {{ Form::submit('Register', ['class' => 'btn btn-primary btn-block form-spacing-top'])}}


        {!! Form::close() !!}
Route::get('auth/register','Auth\[email protected]');
Route::post('auth/register','Auth\[email protected]');

18th March, 2018

Flex left a reply on Class Collective\Html\HtmlServiceProvider Not Found Error • 3 months ago

@masandikdev already i have added this to providers and aliases

Flex left a reply on Class Collective\Html\HtmlServiceProvider Not Found Error • 3 months ago

@shez1983 can you describe in details what add config/app

17th March, 2018

Flex started a new conversation Class Collective\Html\HtmlServiceProvider Not Found Error • 3 months ago

working with laravel 5.2. when I execute to artisan command in my terminal it is coming this error

class collective\Html\HtmlServiceProvider not found error

how can fix this error

12th March, 2018

Flex left a reply on Working With Laravel 5.6 File • 3 months ago

@iMsldZz is it depend on composer version?

11th March, 2018

Flex started a new conversation Working With Laravel 5.6 File • 3 months ago

hi, now I am working with laravel 5.2. but I need work with new Laravel version 5.6 so, how can I download laravel 5.6 project file using Composer.

7th March, 2018

Flex left a reply on How To Fix Class 'App\Providers\EntrustServisesProviders' Not Pound • 3 months ago

I have commented this in config/app.php providers

App\Providers\EntrustServiceProvider::class,

then it is working....

Flex left a reply on How To Fix Class 'App\Providers\EntrustServisesProviders' Not Pound • 3 months ago

@mvd i am using fresh laravel copy not did anything here...

Flex left a reply on How To Fix Class 'App\Providers\EntrustServisesProviders' Not Pound • 3 months ago

not any idea to solve this problem?

Flex started a new conversation How To Fix Class 'App\Providers\EntrustServisesProviders' Not Pound • 3 months ago

I am working with Laravel 5.2 and when I write artisan command in my terminal to run my project following message is comming on my terminal "how to fix Class 'App\Providers\EntrustServisesProviders' not pound"

how can fix this problem?

28th December, 2017

Flex left a reply on How To Show Project Name In Limited Characters In Laravel? • 5 months ago

how can I add some ....... to the end of the project name ? did some thing via https://laravel.com/docs/5.5/helpers#method-str-limit but not success?

Flex started a new conversation How To Show Project Name In Limited Characters In Laravel? • 5 months ago

I need show My laravel application project name with limited characters. that means as an example consider some project name contains more than 10 letters, then I need only show 10 characters.

My project name create controller is

public function store(Request $request)
    {
        $this->validate($request, [
            'name'     => 'required|min:3',
            'notes'    => 'required|min:10',
            'color'    => 'required',
            'group'    => 'required',
            'status'   => 'required'
        ]);

        $project = new Project;
        $project->project_name   = $request->input('name');
        $project->project_status = $request->input('status');
        $project->group          = $request->input('group');
        $project->color          = $request->input('color');
        $project->project_notes  = $request->input('notes');
        $project->user_id        = Auth::user()->id;

        $duplicate = Project::where('project_name',$project->project_name)->first();
        if($duplicate)
        {
            return redirect()->route('projects.index')->with('warning','Title already exists');
        }   

        $project->save();
        return redirect()->route('projects.index')->with('info','Your Project has been created successfully');

and project name showing blade file is

<div class="row">
             @foreach ($projects as $proj)
               <div class="col-md-3" style="border:3px solid {!!$proj->color!!};margin-left:5px;margin-bottom: 5px;">
               <h2><a href="/projects/{{ $proj->id }}">{!! $proj->project_name !!}</a></h2>

then how can I show only 10 charactors in My blade file?

Edit Your Profile
Update

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