avishkaMe

Member Since 1 Year Ago

Experience Points
1,000
Total
Experience

4,000 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
0
Lessons
Completed
Best Reply Awards
0
Best Reply
Awards
  • start your 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-in-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 Created with Sketch.

    Subscriber

    Earned if you are a paying Laracasts subscriber.

  • lifer Created with Sketch.

    Lifer

    Earned if you have a lifetime subscription to Laracasts.

  • evangelist 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.

  • Community Pillar

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

Level 1
1,000 XP
May
07
2 days ago
Activity icon

Started a new Conversation How To Deploy Separate Laravel, Vue Project To Shared Hosting On Same Domain?

I have a project in which the backend runs with laravel and the frontend runs with vue.

These are separate projects, not a single project. I'm calling laravel API from the frontend Vue application.

Is there any way to host these two projects under the same domain on shared hosting?

Apr
16
3 weeks ago
Activity icon

Replied to TypeError: Cannot Read Property '$emit' Of Undefined

<script>
import { Form, Field } from "vee-validate";
import * as Yup from "yup";
import User from "../../../apis/User";
import { useToast } from "primevue/usetoast";

export default {
  components: {
    Form,
    Field,
  },

  setup() {
    const toast = useToast();

    const schema = Yup.object().shape({
      name: Yup.string().required("Name is required"),
      email: Yup.string()
        .required("Email is required")
        .email("Email is invalid"),
      password: Yup.string()
        .min(8, "Password must be at least 8 characters")
        .required("Password is required"),
      password_confirmation: Yup.string()
        .oneOf([Yup.ref("password"), null], "Passwords must match")
        .required("Confirm Password is required"),
    });

    const onSubmit = (values) => {
      // display form values on success
      console.log(values);
      let newUser = {
        name: values.name,
        email: values.email,
        password: values.password,
        password_confirmation: values.password_confirmation,
      };

      User.register(newUser).then((data) => {
        console.log(data);
        if (data.data.user) {
          this.$emit('event');
          toast.add({
            severity: "success",
            summary: "Success Message",
            detail: "User Registered",
            life: 3000,
          });
        } else {
          toast.add({
            severity: "error",
            summary: "Error Message",
            detail: data.data[0],
            life: 3000,
          });
        }
      });
    };

    return {
      schema,
      onSubmit,
    };
  },
};
</script>
Activity icon

Replied to TypeError: Cannot Read Property '$emit' Of Undefined

User.register(newUser).then((data) => {
        if (data.data.user) {
          this.$emit('event');
          toast.add({
            severity: "success",
            summary: "Success Message",
            detail: "User Registered",
            life: 3000,
          });
        } else {
          toast.add({
            severity: "error",
            summary: "Error Message",
            detail: data.data[0],
            life: 3000,
          });
        }
      });

I just want to close the parent sidebar after registering.

Activity icon

Started a new Conversation TypeError: Cannot Read Property '$emit' Of Undefined

I want to call to a method in my parent component within my child component.

so I used an event for that. but I can emit the event using,

this.$emit('event')

it shows an error in the console saying, TypeError: Cannot read property '$emit' of undefined

how do I fix this?

Feb
15
2 months ago
Activity icon

Started a new Conversation Using Spatie Multitenancy Package With Laravel Infyom Generator

Is there anyone who used this spatie multitenancy package with laravel infyom generator?

I can't run migrations with this multitenancy package. can anyone give proper guidance?

Feb
12
2 months ago
Activity icon

Started a new Conversation Laravel Infyom Generator Api (swagger) Not Working

I'm new to the infyom generator. I generated an API Scaffolding Model from it.

Now when I going to test the generated API, it shows this error in the swagger document.

I was going to store data to DB for this customer model.

{
  "message": "",
  "exception": "Symfony\Component\HttpKernel\Exception\NotFoundHttpException",
  "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Routing\AbstractRouteCollection.php",
  "line": 43,
  "trace": [
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Routing\RouteCollection.php",
      "line": 162,
      "function": "handleMatchedRoute",
      "class": "Illuminate\Routing\AbstractRouteCollection",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Routing\Router.php",
      "line": 647,
      "function": "match",
      "class": "Illuminate\Routing\RouteCollection",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Routing\Router.php",
      "line": 636,
      "function": "findRoute",
      "class": "Illuminate\Routing\Router",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Routing\Router.php",
      "line": 625,
      "function": "dispatchToRoute",
      "class": "Illuminate\Routing\Router",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php",
      "line": 166,
      "function": "dispatch",
      "class": "Illuminate\Routing\Router",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php",
      "line": 128,
      "function": "Illuminate\Foundation\Http\{closure}",
      "class": "Illuminate\Foundation\Http\Kernel",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php",
      "line": 21,
      "function": "Illuminate\Pipeline\{closure}",
      "class": "Illuminate\Pipeline\Pipeline",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php",
      "line": 167,
      "function": "handle",
      "class": "Illuminate\Foundation\Http\Middleware\TransformsRequest",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php",
      "line": 21,
      "function": "Illuminate\Pipeline\{closure}",
      "class": "Illuminate\Pipeline\Pipeline",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php",
      "line": 167,
      "function": "handle",
      "class": "Illuminate\Foundation\Http\Middleware\TransformsRequest",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php",
      "line": 27,
      "function": "Illuminate\Pipeline\{closure}",
      "class": "Illuminate\Pipeline\Pipeline",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php",
      "line": 167,
      "function": "handle",
      "class": "Illuminate\Foundation\Http\Middleware\ValidatePostSize",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance.php",
      "line": 86,
      "function": "Illuminate\Pipeline\{closure}",
      "class": "Illuminate\Pipeline\Pipeline",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php",
      "line": 167,
      "function": "handle",
      "class": "Illuminate\Foundation\Http\Middleware\PreventRequestsDuringMaintenance",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\fruitcake\laravel-cors\src\HandleCors.php",
      "line": 57,
      "function": "Illuminate\Pipeline\{closure}",
      "class": "Illuminate\Pipeline\Pipeline",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php",
      "line": 167,
      "function": "handle",
      "class": "Fruitcake\Cors\HandleCors",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\fideloper\proxy\src\TrustProxies.php",
      "line": 57,
      "function": "Illuminate\Pipeline\{closure}",
      "class": "Illuminate\Pipeline\Pipeline",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php",
      "line": 167,
      "function": "handle",
      "class": "Fideloper\Proxy\TrustProxies",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php",
      "line": 103,
      "function": "Illuminate\Pipeline\{closure}",
      "class": "Illuminate\Pipeline\Pipeline",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php",
      "line": 141,
      "function": "then",
      "class": "Illuminate\Pipeline\Pipeline",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php",
      "line": 110,
      "function": "sendRequestThroughRouter",
      "class": "Illuminate\Foundation\Http\Kernel",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\public\index.php",
      "line": 52,
      "function": "handle",
      "class": "Illuminate\Foundation\Http\Kernel",
      "type": "->"
    },
    {
      "file": "C:\Projects\InfyOm\coreui-generator-8.0\server.php",
      "line": 21,
      "function": "require_once"
    }
  ]
}

Can anyone give me a little help?

Jan
31
3 months ago
Activity icon

Replied to How To Redirect To A Custom URL After Login Laravel 8.x

Corrected it, but the error still appearing.

Activity icon

Started a new Conversation How To Redirect To A Custom URL After Login Laravel 8.x

I have two user roles as admin and agent. I want to redirect agent to another dashboard view and admin to main dashboard after login.

This is my LoginController

namespace App\Http\Controllers\Auth;

use App\Http\Controllers\Controller;
use App\Providers\RouteServiceProvider;
use Illuminate\Foundation\Auth\AuthenticatesUsers;
use App\Role;

class LoginController extends Controller
{
    /*
    |--------------------------------------------------------------------------
    | Login Controller
    |--------------------------------------------------------------------------
    |
    | This controller handles authenticating users for the application and
    | redirecting them to your home screen. The controller uses a trait
    | to conveniently provide its functionality to your applications.
    |
    */

    use AuthenticatesUsers;

    /**
     * Where to redirect users after login.
     *
     * @var string
     */

    /**
     * Create a new controller instance.
     *
     * @return void
     */
    public function __construct()
    {
        $this->middleware('guest')->except('logout');
    }

    public function authenticated()
{
    if(auth()->user()->hasRole('Admin'))
    {
        return redirect('/home');
    } 

    return redirect('welcome');
}
    
}

This is my User.php

public function hasRole($role)
    {
      if ($this->roles()->where('name', $role)->first()) {
        return true;
      }
      return false;
    }

but after login, I have got this error

Error
Class 'App\Role' not found

Can you please help me to fix this issue?

Jan
06
4 months ago
Activity icon

Started a new Conversation Laravel InfyOm Yajra/DataTable Not Showing Data

I'm using laravel infyOm generator v9 with laravel v8. my php version is 7.3.

I can add new data from the model created by infyOm generator. the data also get saved in the database. but that data does not shows in the data table.

What should be the issue for this?

My package.json

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "infyomlabs/adminlte-templates": "8.0.x-dev",
        "infyomlabs/generator-builder": "dev-master",
        "infyomlabs/laravel-generator": "8.0.x-dev",
        "infyomlabs/routes-explorer": "dev-master",
        "laravel/framework": "^8.12",
        "laravel/tinker": "^2.5",
        "laravel/ui": "3.0",
        "laravelcollective/html": "^6.2",
        "yajra/laravel-datatables": "1.5",
        "yajra/laravel-datatables-oracle": "9.15"
    },
    "require-dev": {
        "facade/ignition": "^2.5",
        "fakerphp/faker": "^1.9.1",
        "laravel/sail": "^0.0.5",
        "mockery/mockery": "^1.4.2",
        "nunomaduro/collision": "^5.0",
        "phpunit/phpunit": "^9.3.3"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/",
            "Database\Factories\": "database/factories/",
            "Database\Seeders\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "funding": [
        {
            "type": "opencollective",
            "url": "https://opencollective.com/infyomlabs"
        }
    ]
}

my config/app.php

<?php

return [

    /*
    |--------------------------------------------------------------------------
    | Application Name
    |--------------------------------------------------------------------------
    |
    | This value is the name of your application. This value is used when the
    | framework needs to place the application's name in a notification or
    | any other location as required by the application or its packages.
    |
    */

    'name' => env('APP_NAME', 'Laravel'),

    /*
    |--------------------------------------------------------------------------
    | Application Environment
    |--------------------------------------------------------------------------
    |
    | This value determines the "environment" your application is currently
    | running in. This may determine how you prefer to configure various
    | services the application utilizes. Set this in your ".env" file.
    |
    */

    'env' => env('APP_ENV', 'production'),

    /*
    |--------------------------------------------------------------------------
    | Application Debug Mode
    |--------------------------------------------------------------------------
    |
    | When your application is in debug mode, detailed error messages with
    | stack traces will be shown on every error that occurs within your
    | application. If disabled, a simple generic error page is shown.
    |
    */

    'debug' => (bool)env('APP_DEBUG', false),

    /*
    |--------------------------------------------------------------------------
    | Application URL
    |--------------------------------------------------------------------------
    |
    | This URL is used by the console to properly generate URLs when using
    | the Artisan command line tool. You should set this to the root of
    | your application so that it is used when running Artisan tasks.
    |
    */

    'url' => env('APP_URL', 'http://localhost'),

    'asset_url' => env('ASSET_URL', null),

    /*
    |--------------------------------------------------------------------------
    | Application Timezone
    |--------------------------------------------------------------------------
    |
    | Here you may specify the default timezone for your application, which
    | will be used by the PHP date and date-time functions. We have gone
    | ahead and set this to a sensible default for you out of the box.
    |
    */

    'timezone' => 'UTC',

    /*
    |--------------------------------------------------------------------------
    | Application Locale Configuration
    |--------------------------------------------------------------------------
    |
    | The application locale determines the default locale that will be used
    | by the translation service provider. You are free to set this value
    | to any of the locales which will be supported by the application.
    |
    */

    'locale' => 'en',

    /*
    |--------------------------------------------------------------------------
    | Application Fallback Locale
    |--------------------------------------------------------------------------
    |
    | The fallback locale determines the locale to use when the current one
    | is not available. You may change the value to correspond to any of
    | the language folders that are provided through your application.
    |
    */

    'fallback_locale' => 'en',

    /*
    |--------------------------------------------------------------------------
    | Faker Locale
    |--------------------------------------------------------------------------
    |
    | This locale will be used by the Faker PHP library when generating fake
    | data for your database seeds. For example, this will be used to get
    | localized telephone numbers, street address information and more.
    |
    */

    'faker_locale' => 'en_US',

    /*
    |--------------------------------------------------------------------------
    | Encryption Key
    |--------------------------------------------------------------------------
    |
    | This key is used by the Illuminate encrypter service and should be set
    | to a random, 32 character string, otherwise these encrypted strings
    | will not be safe. Please do this before deploying an application!
    |
    */

    'key' => env('APP_KEY'),

    'cipher' => 'AES-256-CBC',

    /*
    |--------------------------------------------------------------------------
    | Autoloaded Service Providers
    |--------------------------------------------------------------------------
    |
    | The service providers listed here will be automatically loaded on the
    | request to your application. Feel free to add your own services to
    | this array to grant expanded functionality to your applications.
    |
    */

    'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        Illuminate\Auth\AuthServiceProvider::class,
        Illuminate\Broadcasting\BroadcastServiceProvider::class,
        Illuminate\Bus\BusServiceProvider::class,
        Illuminate\Cache\CacheServiceProvider::class,
        Illuminate\Foundation\Providers\ConsoleSupportServiceProvider::class,
        Illuminate\Cookie\CookieServiceProvider::class,
        Illuminate\Database\DatabaseServiceProvider::class,
        Illuminate\Encryption\EncryptionServiceProvider::class,
        Illuminate\Filesystem\FilesystemServiceProvider::class,
        Illuminate\Foundation\Providers\FoundationServiceProvider::class,
        Illuminate\Hashing\HashServiceProvider::class,
        Illuminate\Mail\MailServiceProvider::class,
        Illuminate\Notifications\NotificationServiceProvider::class,
        Illuminate\Pagination\PaginationServiceProvider::class,
        Illuminate\Pipeline\PipelineServiceProvider::class,
        Illuminate\Queue\QueueServiceProvider::class,
        Illuminate\Redis\RedisServiceProvider::class,
        Illuminate\Auth\Passwords\PasswordResetServiceProvider::class,
        Illuminate\Session\SessionServiceProvider::class,
        Illuminate\Translation\TranslationServiceProvider::class,
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,
        InfyOm\GeneratorBuilder\GeneratorBuilderServiceProvider::class,
        Yajra\DataTables\DataTablesServiceProvider::class,
        \InfyOm\RoutesExplorer\RoutesExplorerServiceProvider::class,

        /*
         * Package Service Providers...
         */

        /*
         * Application Service Providers...
         */
        App\Providers\AppServiceProvider::class,
        App\Providers\AuthServiceProvider::class,
        // App\Providers\BroadcastServiceProvider::class,
        App\Providers\EventServiceProvider::class,
        App\Providers\RouteServiceProvider::class,

    ],

    /*
    |--------------------------------------------------------------------------
    | Class Aliases
    |--------------------------------------------------------------------------
    |
    | This array of class aliases will be registered when this application
    | is started. However, feel free to register as many as you wish as
    | the aliases are "lazy" loaded so they don't hinder performance.
    |
    */

    'aliases' => [

        'App' => Illuminate\Support\Facades\App::class,
        'Arr' => Illuminate\Support\Arr::class,
        'Artisan' => Illuminate\Support\Facades\Artisan::class,
        'Auth' => Illuminate\Support\Facades\Auth::class,
        'Blade' => Illuminate\Support\Facades\Blade::class,
        'Broadcast' => Illuminate\Support\Facades\Broadcast::class,
        'Bus' => Illuminate\Support\Facades\Bus::class,
        'Cache' => Illuminate\Support\Facades\Cache::class,
        'Config' => Illuminate\Support\Facades\Config::class,
        'Cookie' => Illuminate\Support\Facades\Cookie::class,
        'Crypt' => Illuminate\Support\Facades\Crypt::class,
        'DB' => Illuminate\Support\Facades\DB::class,
        'Eloquent' => Illuminate\Database\Eloquent\Model::class,
        'Event' => Illuminate\Support\Facades\Event::class,
        'File' => Illuminate\Support\Facades\File::class,
        'Gate' => Illuminate\Support\Facades\Gate::class,
        'Hash' => Illuminate\Support\Facades\Hash::class,
        'Http' => Illuminate\Support\Facades\Http::class,
        'Lang' => Illuminate\Support\Facades\Lang::class,
        'Log' => Illuminate\Support\Facades\Log::class,
        'Mail' => Illuminate\Support\Facades\Mail::class,
        'Notification' => Illuminate\Support\Facades\Notification::class,
        'Password' => Illuminate\Support\Facades\Password::class,
        'Queue' => Illuminate\Support\Facades\Queue::class,
        'Redirect' => Illuminate\Support\Facades\Redirect::class,
        // 'Redis' => Illuminate\Support\Facades\Redis::class,
        'Request' => Illuminate\Support\Facades\Request::class,
        'Response' => Illuminate\Support\Facades\Response::class,
        'Route' => Illuminate\Support\Facades\Route::class,
        'Schema' => Illuminate\Support\Facades\Schema::class,
        'Session' => Illuminate\Support\Facades\Session::class,
        'Storage' => Illuminate\Support\Facades\Storage::class,
        'Str' => Illuminate\Support\Str::class,
        'URL' => Illuminate\Support\Facades\URL::class,
        'Validator' => Illuminate\Support\Facades\Validator::class,
        'View' => Illuminate\Support\Facades\View::class,
        'Form' => Collective\Html\FormFacade::class,
        'Html' => Collective\Html\HtmlFacade::class,
        'Flash' => Laracasts\Flash\Flash::class,
    ],

];
Activity icon

Started a new Conversation Your Requirements Could Not Be Resolved To An Installable Set Of Packages.

I'm using laravel 8 and yajra data table v9. i can add data from the form and they also saved in the database. but the data stored in the database does not appear in the table.

So I try to install yajra-datatables-buttons package and suddenly this error came.

Can anyone have a solution?

  Problem 1
    - Can only install one of: yajra/laravel-datatables-oracle[v9.15.2, 8.0.x-dev].
    - Can only install one of: yajra/laravel-datatables-oracle[8.0.x-dev, v9.15.2].
    - Can only install one of: yajra/laravel-datatables-oracle[8.0.x-dev, v9.15.2].
    - yajra/laravel-datatables-buttons v4.0.0 requires yajra/laravel-datatables-oracle 8.* -> satisfiable by yajra/laravel-datatables-oracle[8.0.x-dev].
    - Installation request for yajra/laravel-datatables-buttons 4.0 -> satisfiable by yajra/laravel-datatables-buttons[v4.0.0].
    - Installation request for yajra/laravel-datatables-oracle (locked at v9.15.2, required as ~9.0) -> satisfiable by yajra/laravel-datatables-oracle[v9.15.2].

My composer.json is

{
    "name": "laravel/laravel",
    "type": "project",
    "description": "The Laravel Framework.",
    "keywords": [
        "framework",
        "laravel"
    ],
    "license": "MIT",
    "require": {
        "php": "^7.3|^8.0",
        "fideloper/proxy": "^4.4",
        "fruitcake/laravel-cors": "^2.0",
        "guzzlehttp/guzzle": "^7.0.1",
        "infyomlabs/adminlte-templates": "8.0.x-dev",
        "infyomlabs/generator-builder": "dev-master",
        "infyomlabs/laravel-generator": "8.0.x-dev",
        "infyomlabs/routes-explorer": "dev-master",
        "laravel/framework": "^8.12",
        "laravel/tinker": "^2.5",
        "laravel/ui": "3.0",
        "laravelcollective/html": "^6.2",
        "yajra/laravel-datatables": "1.5",
        "yajra/laravel-datatables-oracle": "~9.0"
    },
    "require-dev": {
        "facade/ignition": "^2.5",
        "fakerphp/faker": "^1.9.1",
        "laravel/sail": "^0.0.5",
        "mockery/mockery": "^1.4.2",
        "nunomaduro/collision": "^5.0",
        "phpunit/phpunit": "^9.3.3"
    },
    "config": {
        "optimize-autoloader": true,
        "preferred-install": "dist",
        "sort-packages": true
    },
    "extra": {
        "laravel": {
            "dont-discover": []
        }
    },
    "autoload": {
        "psr-4": {
            "App\": "app/",
            "Database\Factories\": "database/factories/",
            "Database\Seeders\": "database/seeders/"
        }
    },
    "autoload-dev": {
        "psr-4": {
            "Tests\": "tests/"
        }
    },
    "minimum-stability": "dev",
    "prefer-stable": true,
    "scripts": {
        "post-autoload-dump": [
            "Illuminate\Foundation\ComposerScripts::postAutoloadDump",
            "@php artisan package:discover --ansi"
        ],
        "post-root-package-install": [
            "@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
        ],
        "post-create-project-cmd": [
            "@php artisan key:generate --ansi"
        ]
    },
    "funding": [
        {
            "type": "opencollective",
            "url": "https://opencollective.com/infyomlabs"
        }
    ]
}