Jump to content


  • Posts

  • Joined

  • Last visited

About ali_254

  • Birthday 05/07/1991

Profile Information

  • Gender

ali_254's Achievements

Regular Member

Regular Member (3/5)



  1. I understand the mistake, but to solve it; I have not found a solution
  2. Your requirements could not be resolved to an installable set of packages. Problem 1 - Root composer.json requires php ^7.2 but your php version (8.1.0) does not satisfy that requirement. Problem 2 - laravel/passport[v8.3.0, ..., 8.x-dev] require php ^7.2 -> your php version (8.1.0) does not satisfy that requirement. - Root composer.json requires laravel/passport ^8.3 -> satisfiable by laravel/passport[v8.3.0, ..., 8.x-dev].
  3. I mean: Solar Hijri Calender
  4. Hi, I downloaded a project from GitHub. When I execute "composer update" command , I get the following error: Your requirements could not be resolved to an installable set of packages please guide me
  5. The date is stored in the database in the "Gregorian date" format. I want to turn it into "solar history" when I receive the information
  6. If I want to use accessor or mutator, I have to write it on all models ... I have 60 models in my project! I want to change the original Eloquent class, is it possible? Thanks
  7. hi... I want when receiving information from the database , Make a change in one of the fields. I do not want to write the change function in the field on all models. I want to make changes to all the eloquent classes. (override methods). In all tables, I have a history field(created_at). I want to make the desired changes to this field when I receive the information
  8. Thanks ... but I want to know, what is the role of Laravel's default middlewares? For example, what is the role of TrustProxies Middleware? or , ShareErrorsFromSession Middleware , What is its function? Laravel does not mention them in the documents
  9. Hi, in the kernel file, a number of arrays are defined... protected $middleware = [ // \App\Http\Middleware\TrustHosts::class, \App\Http\Middleware\TrustProxies::class, \Fruitcake\Cors\HandleCors::class, \App\Http\Middleware\PreventRequestsDuringMaintenance::class, \Illuminate\Foundation\Http\Middleware\ValidatePostSize::class, \App\Http\Middleware\TrimStrings::class, \Illuminate\Foundation\Http\Middleware\ConvertEmptyStringsToNull::class, ]; protected $middlewareGroups = [ 'web' => [ \App\Http\Middleware\EncryptCookies::class, \Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse::class, \Illuminate\Session\Middleware\StartSession::class, // \Illuminate\Session\Middleware\AuthenticateSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, \App\Http\Middleware\VerifyCsrfToken::class, \Illuminate\Routing\Middleware\SubstituteBindings::class, ], protected $routeMiddleware = [ 'auth' => \App\Http\Middleware\Authenticate::class, 'auth.basic' => \Illuminate\Auth\Middleware\AuthenticateWithBasicAuth::class, 'cache.headers' => \Illuminate\Http\Middleware\SetCacheHeaders::class, 'can' => \Illuminate\Auth\Middleware\Authorize::class, 'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class, 'password.confirm' => \Illuminate\Auth\Middleware\RequirePassword::class, 'signed' => \Illuminate\Routing\Middleware\ValidateSignature::class, 'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class, 'verified' => \Illuminate\Auth\Middleware\EnsureEmailIsVerified::class, ]; But Laravel's document does not explain them, what is the reason? https://laravel.com/docs/8.x/middleware
  10. hi. I wrote this code and printed it: $category=Category::find(16); dd($category); The result: (The result of executing the above code , return an object of the category class.) App\Models\Category {#1353 ▼ #connection: "mysql" #table: "categories" #primaryKey: "id" #keyType: "int" +incrementing: true #with: [] #withCount: [] +preventsLazyLoading: false #perPage: 15 +exists: true +wasRecentlyCreated: false #escapeWhenCastingToString: false #attributes: array:5 [▶] #original: array:5 [▶] #changes: [] #casts: [] #classCastCache: [] #attributeCastCache: [] #dates: [] #dateFormat: null #appends: [] #dispatchesEvents: [] #observables: [] #relations: [] #touches: [] +timestamps: true #hidden: [] #visible: [] #fillable: array:2 [▶] #guarded: array:1 [▶] } but , When I run this code: $category=Category::find(16); $class_vars = get_object_vars($category); dd($class_vars); result: array:5 [▼ "incrementing" => true "preventsLazyLoading" => false "exists" => true "wasRecentlyCreated" => false "timestamps" => true ] Which of the results, Are the real properties of category class ? I'm confused
  11. thank you. For direct use of classes (do not use Facades) Should we use "Service Container" ?
  12. hi . By default, facades is disabled in the Lumen framework.Can it be disabled in Laravel as well? And had direct access to classes?
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.